This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes getHeader() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getHeader()" Watch "getHeader()" New topic
Author

getHeader()

Alex Nguyen
Greenhorn

Joined: Jul 17, 2001
Posts: 1
Anyone know where there is a list online of all the headers you can retrieve with this method?
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
code the following in a doGet() or doPost() method of a servlet (or modify it to fit into a JSP).

You can similarly check the Parameter and Attribute values of the request object by using the appropriate getParameterNames() or getAttributeNames().
Hope this helps,
James.
[This message has been edited by james swan (edited July 17, 2001).]
[This message has been edited by james swan (edited July 17, 2001).]
[This message has been edited by james swan (edited July 17, 2001).]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

if you have tomcat, this is one of the examples.
even sample code is included.
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getHeader()