When a JSP target the Servlet, How will you ensure that the response back from the servlet will target the JSP that invoked?
Thanks for replying!
-
Direct Servlet Response to the Calling JSP (1 messages)
- Posted by: Arush Verdan
- Posted on: May 24 2004 12:49 EDT
Threaded Messages (1)
- Direct Servlet Response to the Calling JSP by Paul Strack on May 24 2004 20:20 EDT
-
Direct Servlet Response to the Calling JSP[ Go to top ]
- Posted by: Paul Strack
- Posted on: May 24 2004 20:20 EDT
- in response to Arush Verdan
You can tell which JSP targeted a servlet (through a hyperlink or form submission) by looking the HTTP "referer" header:
String refererURL = request.getHeader("referer");
This will be the URL of the page that invoked the servlet.