Hi,
I am new to
Struts programming. My requirement is to Display a check box in a Page1(with standard display text) and display some additional
information in Page2 if the check box is checked.(should be developed using struts)
i created a Actionform with a boolean variable
In my
JSP page1 i am using <html:checkbox> to generate a check box
In my struts-config.xml the scope of this action is set to "Session" (this should be session for some other purpose)
If i check the checkbox for the first time and clicking on the Next button. Page2 gets displayed with the additional text.
On clicking the Back button on page2, it displays page1 with values retained(check box is selected since scope is set as session). On deselecting the checkbox and clicking on the next button, Page2 gets displayed with the additional text. The "displayAddText" does not get toggled when the check box toggles. (whereas the value toggled
for the first time).
what could be the problem? where am i going wrong? please let me know.
Thanks in advance.
Regards,
Ajay.