Thanks everyone for the info.... magic mailing list this!
My interest in the default servlet is 2 fold....

A Resin user asked whether tomcat could do this....
  <path-mapping url-pattern="/activeadv/*"
real-path="/doc_root/activeadv/"/>

  <path-mapping url-pattern="/includes/*"
real-path="/doc_root/includes/"/>

I thought... be kind of cool to add that functionality and maybe extend it to full paths on HTML PDF files files... so one can serve up isolated sites installed on a machine (outside of a web-app)... like for example the SUN tutorial. its a nice way do turn tomcat into a full document system for entire machine... as well as allow for some additional mapping... a question that seems to come up over and over again... naturally JSPs will have to be relative paths.

The other thing... is that if one looks at the default servlet code... the thing can do XSLT XML transformations, but one cant see that functionality in the Generic servlet....

So I guess from previous discussion... the thing to do its create a DefaultHttpServlet.... which extends HttpServlet.
Use Tims trick
{
  getServletContext().getNamedDispatcher("default")
                     .forward(request, response);
  return;
}
to pull in the safe functionality... ie exclude things like PUTs... and make default file serving something that one can turn on and off.... in the Servlet that extends DefaultHttpServlet.... probably best way is as overridable function.... call super if you want default file serving etc...
Then... "Recreate" the XSLT XML inheritable functionality....

Regards... Johnny

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to