Call a JavaScript function after submit() with something like

clear(){
fieldName.value = "";
}

Or you can cycle thru the form object to erase them ..

Joerg




                    Ruaidhr� Fernandes
                    <ruaidhri_fernandes@        To:     [EMAIL PROTECTED]
                    YAHOO.COM>                  cc:
                    Sent by: A mailing          Subject:     Clearing form fields 
after a submit?
                    list about Java
                    Server Pages
                    specification and
                    reference
                    <[EMAIL PROTECTED]
                    un.com>


                    05/18/2001 02:02 PM
                    Please respond to A
                    mailing list about
                    Java Server Pages
                    specification and
                    reference






Hi all,
Can anyone tell me hoe to clear form fields after
clicking on the submit button.
I have fields which contain sensitive info. When the
submit button is clicked the data is sent to another
JSP. But how can I clear these fields after
submitting?
Thanks
Rui

=====
"If a rabbit's foot is so lucky,..... what happened to the rabbit?"

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.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