Remy Maucherat wrote: >>This is probably a faq. >> >>I'm trying to server jsp pages from a webdav repository. All files with >>the *.jsp url are catched by JspServlet, but it seems that jspServlet >>only looks for the jsp as a file under the web applications directory. >> >>Isn't the JspServlet supposed to follow the rules specified in the >>web.xml file in tomcat 4.0.*? >> >>Log extract; >> >>2002-01-30 12:15:30 StandardContext[/repository]: Mapping >>contextPath='/repository' with requestURI='/repository/test.jsp' and >>relativeURI='/test.jsp' >>2002-01-30 12:15:30 StandardContext[/repository]: Decoded >>relativeURI='/test.jsp' >>2002-01-30 12:15:30 StandardContext[/repository]: Trying exact match >>2002-01-30 12:15:30 StandardContext[/repository]: Trying prefix match >>2002-01-30 12:15:30 StandardContext[/repository]: Trying extension match >>2002-01-30 12:15:30 StandardContext[/repository]: Mapped to servlet >>'jsp' with servlet path '/test.jsp' and path info 'null' and update=true >> >>Then a 404. >> >>If I put the test.jsp file under webapps/repository/test.jsp as a file >>it works. >> > > You can do that, but it's a lot more complex than that to do. Basically, you > need an implementation of a Tomcat 4 Resources written to access a Slide > namespace (instead of, for example, the filesystem). > I just wrote (yesterday) some docs on that: > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/resources.html
Bottom line; Tomcat 4.* makes use of the Resource impl through the JspServlet, but there is no default Resource implementation that have the "loopback mount" effect I'm looking for? I guess it might be dangerous to have a Resource impl use the mapper recursively, since it might invoke the JspServlet which invokes the JspServlets.... etc. > The standalone Slide server uses that to do what you want. > You can look at the source in wrappers/jndi/SlideDirContext.java. It's not > trivial to configure, however, so the easiest is to just use (and maybe > tweak) the standalone server. Ok. We have a webdav servlet based on the simple tomcat webdav servlet, so it's not quite slide. But I will take a look at the slide Resource interface to adapt it to our needs. -- -Torgeir -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
