Yes, I also found another solution, using javascript to check if it is "",
then replace to " ".
But both of these solutions I think is not that good, because using
property="*" and I can save a lot of time to write many setProperty or many
line of javascript.
Is there any reason why the tag is design like that?
Or is there any others way I can use?
----- Original Message -----
From: "Darren Jerrard" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Monday, October 09, 2000 4:19 PM
Subject: RE: A problem about setProperty
> It's not pretty, but what I do is
>
> <jsp:setProperty name="cb" property="PropertyName" value="<%=
> request.getParameter( \"MY_TEXT_FIELD\" ) %>" />
>
> Make sure you '\' the quotes in the getParameter call. Note that the
'value'
> keyword is used.
>
> I found unchecked checkboxes to be tricky as well since the parameter is
not
> sent if it is not checked.
>
> Darren.
>
> -----Original Message-----
> From: Louis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 09, 2000 8:04 AM
> 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_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.
------------------------------------------------------------------------------
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.