Althougn I haven't worked with JSP. But I think you can use CGI variable
HTTP_REFERER value.
Baig
"Sumeet Aggarwal , Gurgaon" <[EMAIL PROTECTED]> on 08/08/2000 11:58:36 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Imran Baig/CresSoft)
Subject: How to get the self url
Hi all,
I want to post my JSP page back to the same page...i.e. the action part of
the form would contain the URL of the same page in which it is used.
<FORM NAME="XYZ" METHOD="POST" ACTION="self URL">
Is there any attribute/ property available with in JSP which can return me
the name of the page from which it is called, so that instead of hardcoding
the page name we can simply use that attribute.
Regards,
Sumeet.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets