Today I find the problem that I have assigned session variable of the whole class or bean, but the value cannot set in struts2
jsp.
I used <s:textfield name="#session.loanForm.location" /> and value cannot set into the variable of the class.
I only can assign single variable in struts2 jsp and reassign in backend code to the loanForm.setLocation(...);
<s:textfield name="location"/?
In backend,
private
String location;
public void setLocation....
public String getLocation(....