You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hudayioglu, Fehmi" <Fe...@Dresdner-Bank.com> on 2001/12/14 14:26:49 UTC

possible to keep old and new values inside of a form bean

Hi folks,

I am sending two values to form bean and then user have the privilege to
change these two values. To restore the database I must also store the old
values that I have conveyed to screen from the formbean but as the user
alters the data my old values are vanished. What will be the effective
solution to store the old values in the form bean while also retrieving the
new values for comparing and sending the changed ones to the servlet.

Cheers,
Fehmi.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: possible to keep old and new values inside of a form bean

Posted by Keith Bacon <ke...@yahoo.com>.
Hi Fehmi.
I think you should do things like this in your Action
class rather than the Form bean - which should
strictly be used for data that goes from forms to
Action class & vice versa.
This is part of your business logic (or maybe of DB
integrity checking) - so if your system is large(ish)
you'll want to have that logic in classes called from
your Action class.
Keith.



--- "Hudayioglu, Fehmi"
<Fe...@Dresdner-Bank.com> wrote:
> Hi folks,
> 
> I am sending two values to form bean and then user
> have the privilege to
> change these two values. To restore the database I
> must also store the old
> values that I have conveyed to screen from the
> formbean but as the user
> alters the data my old values are vanished. What
> will be the effective
> solution to store the old values in the form bean
> while also retrieving the
> new values for comparing and sending the changed
> ones to the servlet.
> 
> Cheers,
> Fehmi.
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>