Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlet - Finding the source of the request

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

I have few JSP pages and one servlet(Main.java). All JSPs have this servlet under action <form action='Main'>. Is there anyway for the servlet to find out from which JSP page it is getting request. I went through HttpServletRequest API but couldn't find anything. Any ideas ? Thanks much.
 
You could try looking in the "Referer" [sic] header :

String referer = request.getHeader("Referer");

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top