• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts2 checkbox behavior in next and previous page. --> problem

 
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I have the struts2 checkbox which behavior strangely when there are previous and next paging situation.
I have the three pages jsp named step1.jsp, step2.jsp and step3.jsp
I have the checkbox control on step1.jsp.
<s:checkbox value="%{loanForm.directmarketingCheckbox}" name="loanForm.directmarketingCheckbox"
style="vertical-align:middle;" id="directmarketingCheckbox" />

(1) Load step1.jsp and checked the checkbox in step1 and clicked next button. It goes to step2.jsp.
(2) In step2.jsp, click previous button. It goes to step1.jsp.
(3) The checkbox in step 1 is checked. Then I unchecked it and click next button.  It goes to step2.jsp.
(4)  In step2.jsp, click previous button. It goes to step1.jsp.
(5) The checkbox in step1 is still checked. (It should show unchecked. Right?).
 
reply
    Bookmark Topic Watch Topic
  • New Topic