Hi -

I've set up servlet-mappings of:

    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>/data/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>*.gif</url-pattern>
    </servlet-mapping>
    ... others...
    <servlet-mapping>
        <servlet-name>mydispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

the intention was:

* when I request anything ending .gif, the default servlet deals with it.
* when I request anything beginning /data/ the default servlet deals with it.
* otherwise mydispatcher deals with it.

however the weird thing is, that any requests to "CONTEXT/data/whatever" is handled by the default servlet as if it was a request for "CONTEXT/whatever" (ie. it strips out the /data/) so to get something in a folder called "/data" I need to request "CONTEXT/data/data/whatever")

So...
* Is this expected behaviour for the DefaultServlet (having skimmed the functional specs for it[1], it does appear that the DefaultServlet "expects" to be served as url-pattern "/")? In this case I need to make my own version of the defaultServlet * Acutally a config error (can't work out how) - like maybe I need to specify some extra piece of Context (at the moment these are just Context free wars dropped into the webapps folder).
 * some kind of corner case bug.

Any help useful

thanks

Tim

[1]http://tomcat.apache.org/tomcat-5.5-doc/catalina/funcspecs/fs-default.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to