Hi,
Bertrand Delacretaz schrieb:
On Fri, Jul 4, 2008 at 1:22 AM, Torgeir Veimo <[EMAIL PROTECTED]> wrote:
...What's the easiest way to enable the servlet container to retain processing
requests which are not handeled by the sling servlet? ...
The launchpad/webapp web.xml contains this:
<!-- Overwrite Mappings which may be present in default web.xml files -->
<servlet-mapping>
<servlet-name>sling</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
So maybe removing it would do the trick?
Not necessairily, because we still have the mapping for the root:
<servlet-mapping>
<servlet-name>sling</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
In addition requests to be handled by JSPs inside Sling are not
generally called with the .jsp extension.
So to have the servlet container handle requests for *.jsp, you would
have to define a servlet which handles these requests, e.g.
<servlet>
<display-name>JSP Servlet</display-name>
<servlet-name>jsp</servlet-name>
<servlet-class>
..fully qualified name of JSP servlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
Hope this helps.
Regards
Felix