I did some testing also. Using 2.1.8 with with the following:
sUsername (form field name and instance field name in the ActionSupport class) public String getsUsername public void setsUsername doesn't work as the setsUsername method doesn't get called on form submission. Using 2.1.6 with the above does work, the setsUsername method does get called on form submission. Using the following on both 2.1.8 and 2.1.6 does work as expected: sUsername (form field name and instance field name in the ActionSupport class) public String getSUsername public void setSUsername Instead of public String getsUsername() ... public void setsUsername(String sUsername) ... try public String getSUsername()... [note the capital S] public void setSUsername()... Struts 2 will look for and then use a set method that follows the JavaBean convention to set the value for the form parameter. Struts 2 will look for and use a get method that follows the JavaBean convention to get the value of a property. KamHon Eng wrote: > > Hi, > I just try to upgrade my project from struts 2.1.6 to struts 2.1.8, I > found that some property is not working. > For example, property username in Login.class working while sUsername > is not working. > Lets do a simple test on struts2 blank project in struts2.1.8.zip > > > > -- View this message in context: http://old.nabble.com/struts-2.1.8-not-working-on-xXxxx-property-tp26125813p26129835.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org