try this:

<%
  for(java.util.Enumeration e =
request.getParameterNames();e.hasMoreElements();) {
    String parameter = (String)e.nextElement();
    out.print(parameter + " = " + request.getParameter(header) + "<br>");
  }
%>

i didn't test it of course! ;)

:crook

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Dinesh Somasundram
Sent: Monday, August 27, 2001 11:31 PM
To: [EMAIL PROTECTED]
Subject: Getting Headers


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

===========================================================================
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