There were some problems with the local mail server this weekend, and I
didn't see this
post I sent last Friday, so I'm reposting.  Any suggestions are still
welcome.... :)

Hello all,

I'm asking hoping that someone will have a suggestion....
Following some of the architecture guidelines I've seen here and elsewhere,
I've set up a system with a controller servlet forwarding for presentation
to
a JSP.  I have several forms in the JSP which I would like to submit back to
the URL of the original servlet.  As per the HTML 4 specs, the ACTION
parameter
of the form tag is now a required element.  In order to provide this
element,
I would like to avoid hardcoding a particular URI, as this will force
deployers
to have very specific mappings of servlets to aliases.  If I create the
entire presentation in a servlet, I can user request.getRequestURI() to
generate the
appropriate path.  Once I forward to the JSP, however, using the same method
provides the URI of the jsp, as used in obtaining a request dispatcher.

Is there any way to obtain the original RequestURI?

-AMT

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