"Chen, Gin" <[EMAIL PROTECTED]> writes:

> Hey Nic and Christopher,
>
>         Thanks for the replies. As of yet I havent had much success with it
> on Tomcat 4.0.1 (I'm using the one with JBoss integrated from the jboss
> site). The method suggested by Jason Hunter was the one that I tried (where
> I faked it into having a .jsp and .html extension) but it doesnt work either
> (I get a resource not found or something like that).

Just faking it won't work.

The container has to know to do a look up on the servlet mappings as
well as lookup on the directory where your index is being done, the
latter is how a trad web server works and therefore how most container
implementers did it.


> Sorry about the .jsp/.html thing.. I made an assumption from the
> same section of the spec that Christopher quoted.
> "The web container must send the request to the first resource in
> the WAR that matches."
> Since it didnt work with my servlet mapping.. I took it to mean an
> actual physical resource. I guess that's not what it means.

You made the same mistake that many container authors made (so you're
in pretty good company).

As I said in my last mail, newer versions of containers should be
doing this now (or soon). It was flagged on the spec team list after
Jason came up with the hack.


> I'll try it again with the new version of Tomcat when I get a
> chance.
> Thanks again,

Consult the thread I referred to (it was earlier this month) because
we were talking about whether latest Tomcat can do it or not (I can't
remember what was said, I don't use Tomcat myself).


If you're brave and adventurous you could try GNU Paperclips (my own
servlet container). It's in ALPHA at the moment but you can check it
out of CVS by going here:

   http://savannah.gnu.org/projects/paperclips/


Nic

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to