Thanx,
Dinesh, S.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Andrew Bruno
Sent: Tuesday, August 28, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting Headers
Here's another way, and it works :)
:ab
<html>
<head>
<title>Show All Parameters</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
java.util.Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String parameter = (String) e.nextElement();
out.print(parameter + " = " +
request.getParameter(parameter) + "<br>");
}
%>
<a
href="showallparameters.jsp?hello=hello%20world&jack=jill">showallparame
ters.jsp?hello=hello%20world&jack=jill
</a>
</body>
</html>
-----Original Message-----
From: crook [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 August 2001 1:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Getting Headers
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
=========================
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=P
http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets
===========================================================================
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