Have you tried  request.setAttribute(mapping.getAttribute(), new
SampleForm()); ?
Although I do agree with Michael.

-----Original Message-----
From: victor gusz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:32 PM
To: [EMAIL PROTECTED]
Subject: reset() in my action form is not working


Hi,

I define a reset function and seset every form
variables to null, since I want to reset all inputs to
null after I hit submit button. I also put the
following
line before I return ActionForward in my action class:

request.setAttribute(mapping.getAttribute(),
sampleForm);

But its not working, after I hit submit button, old
values 
are still there. Am I missing something?

thanks,



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to