difference in the property value fetched in validate and model method in Struts2
问题 I am running a basic Struts2 application in which I got one confusion. My action class implements Preparable and ModelDriven interfaces and extends ActionSupport class.The model bean has a single property named "User". My home page(jsp) has one input field corresponding to the only property "User" of a model bean. In prepare() method I am initializing the bean and setting its property to some default value say "Test" and the model() method is returning this bean object. In validate(), I have