This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes Request.ServerVariables() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Request.ServerVariables()" Watch "Request.ServerVariables()" New topic
Author

Request.ServerVariables()

Sumon Mukherjee
Greenhorn

Joined: Dec 19, 2007
Posts: 12
I need the jsp equivalent of Request.ServerVariables() in asp. Please advise...
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

ASP's getServerVariables method returns the combination of a lot of things such as form parameters, querystring parameters, HTTP headers, and some TCP information, as a single collection.

All of this information is available in the HttpServletRequest object but not all jumbled up in a single method like getServerVariables.

It wouldn't be difficult, to emulate getServerVaribles on your own using the request object.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sumon Mukherjee
Greenhorn

Joined: Dec 19, 2007
Posts: 12
Tried getURL(), getRequestURL(),getQueryString(), getPathInfo(), but no luck...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61308
    
  66

Originally posted by Sumon Mukherjee:
but no luck...
That's not going to get you anywhere. What are you expecting and what are you getting? Making people pull teeth in order to help you isn't the best of strategies.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: Request.ServerVariables()