On Wed, 30 Oct 2002, Amit Badheka wrote:

> Date: Wed, 30 Oct 2002 11:26:50 +0530
> From: Amit Badheka <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: url mapping
>
> Thanks Craig,
>
> So should I accept it as ultimate solution, and no way to do it with url
> mapping.

Somewhere, you are going to have to specify the *actual* context-relative
path of your pages, even if it were possible to do this with mappings.
Therefore, it's not possible to make this invisible, because otherwise the
servlet container will never find them.

If you don't like the context-relative URLs of your JSP pages, then you
should put the pages (inside your webapp) where they create the URLs you
like.  The URL of a JSP page is the *result* of where you put the JSP
file, not the *cause*.

Craig


>
> ----- Original Message -----
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 11:19 AM
> Subject: Re: url mapping
>
>
> >
> >
> > On Wed, 30 Oct 2002, Amit Badheka wrote:
> >
> > > Date: Wed, 30 Oct 2002 11:03:40 +0530
> > > From: Amit Badheka <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > Subject: Re: url mapping
> > >
> > > Thanks for reply, David.
> > >
> > > You are right, but when I uses the page reference in struts-config etc
> then
> > > I want to avoid using /jsp/some.jsp.
> > > I am not thinking about user view, but the programmer's view.
> > >
> > > So, I just want to know is there anyway I can avoid /jsp.
> > >
> >
> > If you don't want to reference them as "/jsp/foo.jsp', then put the JSP
> > pages in the top-level directory of your webapp, instead of in a "jsp"
> > subdirectory.
> >
> > The struts-config.xml file must reflect the actual context-relative path
> > of where the pages exist.  If you don't like the resulting path, change
> > where you put the pages!
> >
> > Craig
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to