Make use of the HTTP Referer, which you can extract from the request.
Also, I recommend against printing HTML from your servlet--it's messy.
Consider using a tool like WebMacro to separate the HTML out of your
servlet:

   http://webmacro.org

Justin

Quoting Duke Martin ([EMAIL PROTECTED]):
> Hello,
>
> I have a servlet that generates an HTML form.  The form servlet posts the
> form data to another servlet that processes the data.  Once the data is
> posted to the new servlet, how can I create a link back to the original form
> servlet?  I have tried several ways but have been unsuccessful.  Please
> help.
>
> Duke
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to