Use Struts and in the reset method of your form class, set the value to null.

-----Original Message-----
From: Jeff Ousley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 4:05 PM
To: [EMAIL PROTECTED]
Subject: empty form fields and jsp:setProperty


Hello,

I'm trying to do a simple form on a jsp page in
conjunction with a bean. I'm able to set the values on
a form and retrieve them from the bean just fine.
However, I'm using:

<jsp:setProperty name="termwatch" property="*"/>

and I'm not clearly understanding how to properly
handle empty fields. All my .jsp page does right now
is display the values you submit. But, if I clear a
value, it doesn't get cleared in the bean (I'm
assuming because the set method isn't getting called
for empty fields). What is the normal/proper way to
accomplish the clearing of empty form fileds?

thanks!
-jeff

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to