• 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

How to retain the selected checkbox after form load?

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Members,

Im having some bunch of check boxes and im selecting few in that and after form loads i can get the value of the selected check box, but the selected one is seen unselected after form loads, im not sure what im doing wrong..... I need the selected check box to be selected after form loads...

Please help me in this...........

Looking forward for your reply...

Regards,
Prabhu.
[ July 24, 2008: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please clarify to me, what is mean by 'form load' , is it mean that when page load or when you submit the form !

and post your <form> code and action/servlet who processing it !
 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sagar,

Great to meet you here.

Sorry it is page load(when i click the submit button ... struts action )
And i could not post my code as it is huge, but my requirement is, im having some check box and im selecting some check box in it and after page load or page submit i have to show the selected check box again using javascript function.

Please reply me if you are not clear with my reply...

Regards,
Prabhu.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As was posted in the other topic on this issue, your JSP needs to set the following attribute:



on the checkboxes that are to be checked.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic