Thanks Yuan,
    Yes it is work now. But unfortunetly in my case, I can't use this
method, because my jsp page will go to the controller servlet first and
forward to another jsp page.  So I create another property say reset in my
beans, so b4 I use property="*", I use setProperty="reset" first.
    Anywhere, do u know why the request is work but session & application
scope not work?



Louis
----- Original Message -----
From: "Yuan Sheila" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, October 10, 2000 2:13 AM
Subject: RE: A problem about setProperty


> 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.

------------------------------------------------------------------------------
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.

Reply via email to