The problem with servlet mappings is that they only map to a servlet.
They don't allow you to nullify a mapping for a subgrouping.
Thus if I want to map /myalias/ to a servlet MyServlet but I don't want
to include jsp files, there is no way to nullify the alias for that
filetype. That is what I need to do.
The only workaround that I can think of is making an alias for each
filetype:
/myalias/*.html
/myalias/*.htm
etc.
But it would be far more elegant to be able to nullify an alias and map
/myalias/ to MyServlet and
/myalias/*.jsp
--Gabe
Michael Akerman wrote:
>
> This should be easy to do with servlet mappings. See chapter 10 of the
> Servlet 2.2 specification, or chapter 11 of the Servlet 2.3 specification.
>
> "The container will then try to recursively match the longest path prefix
> mapping. This process occurs by stepping down the path tree a directory at
> a time, using the / character as a path separator, and determining if
> there is a match with a servlet."
>
>
> Michael Akerman
>
>
> -----------------------------------------------------------------
>
> [EMAIL PROTECTED] Information Services
> (501) 575-5870 University of Arkansas
> http://www.uark.edu/~mike
>
> -----------------------------------------------------------------
>
>
> On Fri, 15 Feb 2002, Gabriel J Zimmerman wrote:
>
>
>>Hi,
>>
>>I would like to create a servlet alias in a webapp say /myalias/, which
>>goes to a servlet, call it MyServlet. However, I do not want this alias
>>to affect jsp files, so for example, if someone went to
>>/myalias/somefile.jsp then they would see the JSP file and not the alias.
>>
>>Is there any way to do this without using a Filter (and thus having to
>>use the 2.3 spec instead of 2.2)?
>>
>>Thanks a lot,
>>Gabriel Zimmerman
>>Groundzero Associates
>>
>>===========================================================================
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>> http://archives.java.sun.com/jsp-interest.html
>> http://java.sun.com/products/jsp/faq.html
>> http://www.esperanto.org.nz/jsp/jspfaq.jsp
>> http://www.jguru.com/faq/index.jsp
>> http://www.jspinsider.com
>>
>>
>
> ------------------------------
>
> Date: Fri, 15 Feb 2002 16:30:01 -0700
> From: sanjib B <[EMAIL PROTECTED]>
> Subject: HeartBeat Technique
>
> Has Anyone heard about heart beat technique? If anyone knows about it will you
>please let me know what it is and how it works?
> I have just heard this terminology ( another one !!! plss...give me a break ).
>Supposedly used for session management( I might be totally wrong!!).
>
> Thanks
> Sanjib
>
> ------------------------------
>
> End of JSP-INTEREST Digest - 14 Feb 2002 to 15 Feb 2002 (#2002-46)
> ******************************************************************
>
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com