create an array in javascript that stores each new value as you press more.
when you click the "send" button, handle the event before sending the form
(if it's a submit button, use the form's "onsubmit" event, or otherwise use
the button's "onclick" event). when handling the event, create a string
containing all the elements of the array, one after the other (with some
separator character in between for example), then store this string in
another form field, probably a hidden one
-Chris Brown
----- Original Message -----
From: "Ashutosh Bhardwaj" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 12:33 PM
Subject: a jsp -javascript problem
> hi,
> i have a jsp with one text field and two buttons
> one "submit" and one "more".
> after entering the value when i press more button the
> field gets cleared and the value in the field should
> be stored somewhere say a java or javascript using
> javascript.
> on pressing submit i have to pass the contents of
> array in request .how can i do that?
> for simplicity i am asking for one field but actually
> i have one full record consisting of many fields,so
> the solution must be given keeping that in mind.
>
> thanks in advance,
> ashutosh
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>
===========================================================================
> 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