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
>
===========================================================================
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