Yeah, you've understood me correctly. However, I wish to funnel all incoming
HTTP requests to main.jsp (including clicking on hyperlinks, which can't have
any hidden parameters). I could use a servlet, but I can't believe I can't do
this with a JSP.

Any other suggestions??




"Arun Thomas" <[EMAIL PROTECTED]> on 09/11/99 16:18:54

To:   Patrick O'Keeffe/Tertio@Tertio
cc:
Subject:  RE: URL mapping ...




Patrick,

One way you could do this is by, a you said, making main.jsp the action of
all
the forms.  As a hidden parameter, place the URI of another jsp or servlet
that responds specifically to the page from which the request is made.  This
will let you do some initial preprocessing in main.jsp, and then forward the
request to the appropriate page.

(I assume here that your goal is to use main as a preprocessor, and possibly
a router for the actual requests).  Did I understand that correctly?

-AMT

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of O'Keeffe Patrick
> Sent: Tuesday, November 09, 1999 10:06 AM
> To: [EMAIL PROTECTED]
> Subject: URL mapping ...
>
>
> Hi,
>
> I'm sure this is easy:
>
> I'm using the JSWDK 1.0 from Sun. Is there a way to map all HTTP
> posts or gets
> within a web application to one JSP (i.e. main.jsp). I could just specify
> main.jsp in the action of the form in each JSP, but then I can't
> do anything
> with the URI.
>
> I've put main.jsp in the servlets directory (after all, it is basically a
> servlet) and I've tried amending the properties file with the
> following, but
> none seem to work:
>      /main = main.jsp
>      /main/* = main.jsp
>
> The action in the form is
>      /servlet/main/newLogin.
>
> Each time I get 404 - file found.
>
> Any help would be greatly appreciated.
>
> Patrick.
>
> Tertio Limited  -  One Angel Square,   Torrens Street,   London  EC1V 1NY
> Tel: +44 (0)171 843 4000 Fax: +44 (0)171 843 4001 Web
http://www.tertio.com
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Tertio
Ltd.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to