• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retaining a checkbox value...

 
Jon Nicks
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Would anyone know how I'd retain a checkbox value for a JSP?
Basically, I populate the first JSP with field values and a checked checkbox, then go to another JSP. If I then return to the original JSP all field values are still there (from the component bean get() method for each field), but the checkbox has lost its check! I know the values it takes are On or Off, and I know what value's set, but I can't pass it back to the JSP. Should I treat it as another field and declare a variable for it in the component bean like the other fields?
I hope this makes sense. Any help would be most appreciated, I'm sure I'm missing something simple here...?
Thanks in advance,
Jon.
 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put the values in session or a bean with session scope.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!