Go to content Go to navigation Go to search

Tomcat JSP Strangeness

Order matters in web.xml.

Had some tomcat wierdness

Despite the fact this is in the main tomcat web.xml

<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>

I was seeing direct .jsp requests sent to my controller which is mapped in the webapp web.xml as

<servlet-mapping>
<servlet-name>control</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

To follow symlinks put allowLinking="true" in the Context.

Previous post:
Moving to apache2 and mod_jk the debian way
Next post:
Analog script from mailing list