On the 8.5, it seems the design-time template renderer is altering my URLs. I have the following line in my template.jtpl:
<a href= "foo.jsp">bar</a>
And this is how it will be rendered in the JSP file:
<a href= "foo.faces">bar</a>
This seems to be related to contents of the web.xml file - if I remove the following lines from web.xml (we are not using this URL pattern anyway):
<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping>
The URL in JSP file changes to this:
<a href= "/web/faces/foo.jsp">bar</a>
Which would be okay - though, the problem is that our code will get deployed on different context paths, not just "web" - causing this URL to fail on every other context path than "web".
So I'd rather not have my URLs altered - can I disable this behaviour somehow? I could not find anything from RBD's preferences or project's properties. We're using JSF 1.1, Dynamic Web Module 2.3 and Tomcat 5.5.