Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts - Checkbox

 
S Krishnan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

I came through scenario where the checkbox doesnt work as expected.

When the check box is selected, it is identified. But when I display the box in the next screen (which should display the selection), the selection is not rendered.

What could be the possible reason.
Thanks.
SK
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of things that could go wrong. I'd suggest you show us the relevant code fragments in your JSP and form bean. Are the data in all the other controls being display ok, and the checkbox is the only one that isn't?
 
vijaya bharath
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Even i faced this problem in my application
What i did was i send the value as hidden property when it is checked
And at <html:checkbox > we should apecify the value attribute as true
That is when we check it shud return true.
Once we checked and set the value and redisplay the form now it is showing checked in my appl. Its better if u send u r code. Then we can find what's the problem is
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic