hi,
Have a hidden field and put the contents of the text field into it.
You can store the information in this format
name@abcd~~dept@prdn etc. Then use string tokenizer in the servlet to
split the hidden fields.

Another option would be to put the variables
in xml like "<rec><name>abcd</name><dept>dsfsd</dept>" etc, but this
would take more space.

regards,
Nagarajan.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Ashutosh Bhardwaj
Sent: Friday, March 02, 2001 12:34 PM
To: [EMAIL PROTECTED]
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

Reply via email to