On 5/20/02 5:25 PM, "Vladimir" <[EMAIL PROTECTED]> wrote:
> Yes but if I map do <url-pattern>/</url-pattern> then this becomes the
> "default" mapping, and anything that it's caught by the other mapping
> gets served by this mapping, so it caches my requests for static
> content. 
> 
> PS
> Just in case it's not clear, I am using tomcat in standalone more so
> that it serves both dynamic and static content

Actually, I don't think it is very clear, but i'll give it a shot.

I use tomcat standalone for dynamic and static content.  Don't map anything
to "/" -- just put an index.jsp at that location that redirects or forwards
to what you want "/" to be.  When "/" is requested, if nothing is mapped, it
will look for index.jsp -- just use the RequestDispatcher to forward to what
you want to process the request.

fillup




> 
> -----Original Message-----
> From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 8:17 PM
> To: Tomcat Users List
> Subject: Re: web.xml
> 
> that should work without any web.xml involvement.
> 
> The web.xml maps ONLY what you map, everything else is resolved with
> your
> static content if it's not found in the servlet-mappings.
> 
> 
> 
> 
> On 5/20/02 5:11 PM, "Vladimir" <[EMAIL PROTECTED]> wrote:
> 
>> Is there any way to make a servlet-mapping that catches request to
>> www.servername.com/contextname/ but not requests to
>> www.servername.com/contextname/some_other_text where some other text
> is
>> a request fro static resources that reside in the document root of the
>> webapp.
>> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to