Hi.
Include in one of the HTML pages a hidden entry in the form. Such as
<input type="hidden" name="source" value="thisPage">
Your servlet can then grab this and perform its if statement on the source
of the page.
if (request.getParameter("source").equals("thisPage"))
{
// Some code
} else {
// Some other code
}
Hope this helps.
Keith
---------------------------------------------------------------------------
Keith Ball - Praktikant
AF12 Operationelle Analysen Luftwaffe
IABG MbH Einsteinstr. 20 85521 Ottobrunn
Phone : 0049-89-6088-2556
Email : [EMAIL PROTECTED] WWW site : www.iabg.de
----------------------------------------------------------------------------
Hello Everyone,
Firstly let me thank everyone here for the generous amount of free
information on this forum.
Here is my question...... I would like to call a specific method within a
class (servlet), depending on the URL/web-page that the request(Post) is
coming from, then capture the URL in a session object. e.g. If someone
clicked the <submit> button on page http://www.java-sun/thispage.html or
page http://www.java-sun/webpage.html it would invoke the same servlet, but
I would like to redirect the Post to a specific method within the servlet
depending on what page made the request.
Many Thanks,
*Antonio*
___________________________________________________________________________
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