Hi Louis ,
This problem comes from your bean's scope . If the bean's scope is
"session" or "application", there will be the problem like yours . I
think you'd better set the bean's scope to "request" .
Have a try .
Regards
Sheila
-----Original Message-----
From: Louis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 8:04 PM
To: JRun-Talk
Subject: A problem about setProperty
Hi,
I'm using <jsp:setProperty name="cb" property="*" /> in my jsp page,
so
the user enter the data will automatically fill into
the bean. But I got a problem, if the user do not enter anythings in
the
textfield, then the setProperty won't do anything, i.e
if previously there is a data in the bean, and it won't replace to
blank.
( I got this problem, because, for example if the user
enter his email and goto next page, if he decide to remove his email,
and he
click back again and delete his email, but his
email address still in the bean unless he enter a space in the email
textfield.)
Anyone know how to solve my problem.
Thanks in advance
Louis
(Sorry to send this mail to here, cos I try and try to send to SUN JSP
mailing list, but it keep reject me, I don't know why).
------------------------------------------------------------------------
------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_tal
k
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.