Hi
Sorry - No For Each in JSP. You would need to use an Enumeration and a while
loop.
Enumeration formElements = request.getParameterNames();
while ( formElements.hasMoreElements())
{
String formElementName = (String) formElements.nextElement();
String formElementvalue = request.getParameter(formElementName);
out.println("<B>" + formElementName + ":</B> " + formElementvalue);
out.println("<BR>");
}
Aneesha
----- Original Message -----
From: "sunker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 2:02 PM
Subject: how to set the for each on the jsp ?
> dear all,
>
> how to set the (ASP)
> for each item in request.form("item_")
> item
> next
>
> in jsp ?
>
>
===========================================================================
> 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