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" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to