Or you could give them all the same name and use
request.getParameterValues("textArea") which will return a String[] for you
to loop over.
Lance Lavandowska
www.HomeWizard.com
www.Brainopolis.com
----- Original Message -----
From: "G.Nagarajan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 01, 2000 3:58 AM
Subject: Re: <textarea>'s and JSP's
> hi,
> you can use request.getParameterName() to get an enumeration of the
> parameter names, and then use request.getParameter() for each name.
>
> Regards,
> Nagaraj.
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Firat Ozcan
> Sent: Friday, December 01, 2000 1:49 AM
> To: [EMAIL PROTECTED]
> Subject: <textarea>'s and JSP's
>
>
> Ok , here is my problem:
>
> Given: Client is presented with a Form either pure HTML or embedded in a
Jsp
> page. In that Form there are 20 <textarea>'s and a submit button. Upon
> submitting this Form, all those 20 <textarea>'s should be processed.
>
> Unfortunately upto here I cannot change anything. Because it is a customer
> requirement.
>
> Problem: I cannot think of a solution which will pick up those 20
> <textarea>'s and process them. How can I pass those guys to a Jsp (or a
> Bean). The only way possible is:
> <TEXTAREA name=text1>bla bla<TEXTAREA>
> <TEXTAREA name=text2>bla bla<TEXTAREA>
> <TEXTAREA name=text3>bla bla<TEXTAREA>
> ... till 20
>
> is it OK to send these guys like that and then the reciever JSP will
extract
> the text from each of the 20 text's by using request.getParameter("text1")
,
> request.getParameter("text2") , bla bla
===========================================================================
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