Hello,
Why can't you directly access those request parameters?
try this:
out.println(request.getParameter("FirstName"));
out.println(request.getParameter("LastName"));
out.println(request.getParameter("MiddleName"));
out.println(request.getParameter("Age"));
Cheers,
Kare
On Thu, 5 Apr 2001, Ashish Adhiya wrote:
> Date: Thu, 5 Apr 2001 02:39:05 -0700
> From: Ashish Adhiya <[EMAIL PROTECTED]>
> Reply-To: A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology. <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Order of getParameterNames()
>
> Hi All,
>
> How do I get all the parameterNames in an HTML form in
> the same sequence as they are in the form.
>
> i.e if the form contains .... FirstName, LastName,
> MiddleName and Age . the output should appear in the
> same sequence
>
> I have tried using the following but this shifts the
> order of the output
>
> **********************************************************
> Enumeration paramNames = request.getParameterNames();
> while(paramNames.hasMoreElements())
> {
> String paramName =
> (String)paramNames.nextElement();
> out.print(paramName);
> }
>
> **********************************************************
> Any help would be appreciated.
>
> Thanks.
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
--
Kare Nuorteva
http://www.kare.uklinux.net/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html