Does struts provide any way to find which properties of form bean has modified?
I tried to find answer on net but failed.
Let me explain my problem: I have a form bean with three member variables. I chances are that user may submit the form without changing any one of these values. If user has not changed any of these values then I want to do call method1(). I dont want to keep old values in session and then compare with latest and then call method1(). If struts keep old values somewhere or directly let me know that which are properties of form bean has changed then it will be great feature of struts.
Does such feature exist?
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
As far as my knowledge is concerned, the answer is No !! May be we need to find out some ActionFormListener, which gets called when some bean states gets changed ..
I would like to suggest some alternative, like
Why don't you keep a check box, which ask user to click, If you want to change this values, and check it If its value is true. That's the one way you can know that user wished to change values.. But there is some cons to this solution , Suppose user click the box, but doesn't change the values...