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.




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-tp26125813p26129386.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

Reply via email to