parsing each field in form without knowint it's name

parsing each field in form without knowint it's name

Post by DGreine » Mon, 10 Dec 2001 11:13:26



in ASP i used For each field in form ...
get value

is it possible in JSP?

(prior to parsing form i don't know names of fields, but from value i can
get all info that i need)
is it possible?
thanx

 
 
 

parsing each field in form without knowint it's name

Post by Ed Y » Mon, 10 Dec 2001 13:05:18


Yes, use:

Enumeration eNames = request.getParameterNames();
while (eNames.hasMoreElements())
    {
    String eName = (String) eNames.nextElement();
    String[] eValues = request.getParameterValues(eName);
    }


Quote:> in ASP i used For each field in form ...
> get value

> is it possible in JSP?

> (prior to parsing form i don't know names of fields, but from value i can
> get all info that i need)
> is it possible?
> thanx