I am a bit confused about session scope of ActionForm.
 
For example, in my ActionForm testForm
 
private String field1 ;
private String filed2 ;
 
I instantiate testForm in a PageOneLoadAction
 
TestForm testForm = new TestForm() ;
Request.getSession().setAttribute("testForm", testForm) ;
 
On page one, I only need to enter field 1
 
<html:form ....>
...
<html:text property="field1"/>
</html:form>
 
Once I subimit, I assume that value of field 1 is saved into testForm.
 
Now I load page 2 which only requires user entering field 2.
 
<html:form...>
...
<html:text property="field2"/>
</html:form>
 
If I submit, value of field 2 is saved into testForm. Will value of field 1
be kept in testForm?
 
 
Regards,
 
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"
 


Reply via email to