Hi All,

I found this piece of code that gets all the headers for a page. It's cool.
However, I am wondering wether is there any way to get all Parameters that
was passed to a page. Any ideas???

Thanx,
Dinesh, S.


//-----------------------
<html>
 <head><title>Show All the Headers</title></head>
 <body>
<%
  for(java.util.Enumeration e =
request.getHeaderNames();e.hasMoreElements();) {
    String header = (String)e.nextElement();
    out.print(header + " = " + request.getHeader(header) + "<br>");
  }
%>
 </body>
</html>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to