according to servlet 2.2, chapter 10.2:

<snip>
A string beginning with a '*.' prefix is used as an extension mapping.
</snip>

your mapping looks like a typical extension mapping. However, it also looks
to me like you are trying to map all JSPs to one "main" JSP. If orion
accepted this, it would be a nice endless recursion

The default mapping for JSPs is in global-web-application.xml. On a side
note, evermind uses that same syntax that Ozzie mentions ("/*.jsp"), which
is meaningless according to the servlet spec (see below). I once used that
syntax in an app that I redeployed under Tomcat - where it stopped working.
I was then pointed to the spec by the Tomcat gurus.

<snip>
A string beginning with a '/' character and ending with a '/*' postfix is
used as a path
mapping.
A string beginning with a '*.' prefix is used as an extension mapping.
>>>>All other strings are used as exact matches only<<<<
</snip>

----- Original Message -----
From: "Trond Nilsen" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 9:48 PM
Subject: Re: servlet mapping


> Thanks - Tried that already, though, doesn't appear to help. My best
solution
> at the moment is a workaround - I put my component JSPs in a subdirectory,
and
> restrict access to this directory - they are only accessed by includes in
the
> 'main' JSP.
>
>
> > Try changing your url-pattern to "/*.jsp"...
> >
> > Thanks,
> > Ozzie Gurkan
> >
> > --- Trond Nilsen <[EMAIL PROTECTED]> wrote:
> > > According to one of the FAQ's on www.jguru.com, I should be able to
set
> > > up a
> > > mapping in my web application such that all attempts to request a file
> > > ending
> > > with .jsp are redirected to a file of my choice (main.jsp in this
case).
> > > Below
> > > is some code from the web.xml file which (I think) should give this
> > > effect.
> > >
> > > <servlet>
> > >   <servlet-name>AdminEntryPoint</servlet-name>
> > >   <jsp-file>main.jsp</jsp-file>
> > > </servlet>
> > >
> > > <servlet-mapping>
> > >     <servlet-name>AdminEntryPoint</servlet-name>
> > >     <url-pattern>*.jsp</url-pattern>
> > > </servlet-mapping>
> > >
> > > I've successfully done this for files that start with some pattern
(such
> > > as
> > > kb* or something similar), but it doesn't appear to work with filename
> > > endings. Has anyone encountered this before? Is it a problem with
Orion,
> > > something I'm doing wrong, or perhaps the faq is wrong?
>
>
>



Reply via email to