[EMAIL PROTECTED] wrote:
<servlet-mapping>
<servlet-name>mainapp</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>mainapp</servlet-name>
<url-pattern>/subapp/*</url-pattern>
</servlet-mapping>
This allows me to route ./mainapp/subapp/myaction.do correctly, but I
can't access ./mainapp/subapp/images/xyz.gif. What I'd really like to do
> is have the last url-pattern to be "/subapp/*.do" - but I understand the
> spec won't allow this?
>
> Anyone have any idea how I can make this work?
Use one more mapping which maps the subapp path:
<servlet-mapping>
<servlet-name>subapp-images-servlet</servlet-name>
<url-pattern>/subapp/images</url-pattern>
</servlet-mapping>
The longest matching path wins. Only if no path matches are
the extension mappings taken into account:
...
<url-pattern>*.ext</url-pattern>
See chapter 11 of the Servlet Spec.
Georg
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]