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!

Enumeration Example - req.getHeaderNames()

Status
Not open for further replies.

KirkKelly

Programmer
Jan 5, 2001
15
US
Code:
/*This sould be in the pageLoaded section */
java.util.Enumeration elist = req.getHeaderNames();
String sHeader="";
while (elist.hasMoreElements())
{
sHeader=(String) elist.nextElement();
System.out.println(sHeader+" = "+req.getHeader(sHeader));
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top