Thank you all so much for your response and help. For my purposes, the
request.getHeader("referer") seems to do the trick. Using hidden fields is
another excellent suggestion.

Thanks,
  Mark

-----Original Message-----
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 12:22 AM
To: Tomcat Users List
Subject: Re: Getting url which submitted form


Mike Jackson wrote:

> Put a hidden field in the form with and identifier that you can use to
> determine which form it was that submitted it.  I'd also suggest another
> hidden field to store a "transaction" id field so you can detect if it's a
> re-submittal of previously submitted information.

[SNIP]

> -----Original Message-----
> From: Mark Thias [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 24, 2004 4:01 PM
> To: Tomcat User Group (E-mail)
> Subject: Getting url which submitted form
> 
> Using Tomcat 5.0.26.
> 
> I'm trying to find out the name of the JSP page which submitted a form.

That might be impractical. I believe every decent HTTP client will place 
a HTTP header "Referer: ", which holds the page that refered to the 
current one. If that wasn't so, tracking broken links on a web site 
would be a nightmare :-)

Nix.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This email may contain confidential and privileged material for the sole use
of the intended recipient. Any review or distribution by others is strictly
prohibited. If you are not the intended recipient please contact the sender
and delete all copies.

Reply via email to