"Mark Thias" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Using Tomcat 5.0.26. > > I'm trying to find out the name of the JSP page which submitted a form. > > For example, I have a form in MyFirstPage.JSP. > > <form id="MyFirstPage" method="post" action="MyNextPage.jsp"> > <input class="actionButton" type="submit" name="Submit" > value="Continue" /> > </form> > > Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a way > to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while > processing the HttpServletRequest parameters inside MyNextForm.jsp. >
String lastPage = request.getHeader("referer"); > > Thank you, > Mark Thias > > > > 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]