aspose file tools
The moose likes Servlets and the fly likes How to use server environment variables in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to use server environment variables in JSP" Watch "How to use server environment variables in JSP" New topic
Author

How to use server environment variables in JSP

Raghu Jamwal
Greenhorn

Joined: Dec 28, 2000
Posts: 8
Hello
I want to use environment variables in my JSP pages like HTTP_REFERER and such.How do I go about it?
Any help would be appreciated.
Ash
Greenhorn

Joined: Apr 18, 2000
Posts: 6
You can get the value for any environment variable that your browser returns in request object. Just add the following line of code to your jsp file.
Here is the referer page <%=request.getHeader("Referer")%>
Good luck.
Raghu Jamwal
Greenhorn

Joined: Dec 28, 2000
Posts: 8
Thanx a lot.It helped.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: How to use server environment variables in JSP
 
Similar Threads
Setting PATH env value in Ant 1.4.1
Opening .bat files from ant
WebSphere environment variables
A JSP Page is a subclass of ?
how to use the environment variables ?