struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric C. Hein" <gro...@mindspring.com>
Subject Re: javascript and STRUTS
Date Sat, 21 Dec 2002 00:25:35 GMT
Rick,
Thanks.  The problem with setting a hidden field was that after the form is
created the bean property was already overwritten.  What I needed to do was
set a javascript variable:
    theCity = new String(<bean:write name="beanName" property="city">);
This gets done before the form is created.

Rgds,
Eric


----- Original Message -----
From: "Rick Reumann" <maillist@reumann.net>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Friday, December 20, 2002 12:46 PM
Subject: Re: javascript and STRUTS


>
>
> On Friday, December 20, 2002, 3:29:15 PM, Eric wrote:
>
> ECH> Is there anyway to capture the value of the bean before it is
overwritten?
>
> Since your using javascript coulnd't you set a hidden field
> "oldValue" that you can set before you do any overwriting? Then you
> would have access to the old value in whatever 'new' stuff you are
> doing.
>
>
> --
>
> Rick
> mailto:maillist@reumann.net
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message