• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we retrieve disabled values of check boxes  RSS feed

 
shanthi naidu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i have got a problem. i need to retrieve values from the chekboxes using JSP that are disabled
i have a doubt like can we retrieve values from disabled checkboxes?

Thanks ,
Shanthi Naidu.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disabled form elements are not transmitted to the server, so, no - you can't retrieve them. If you need values to be sent that the user can't alter, use hidden fields instead.
 
shanthi naidu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply,
could you please also clear one more doubt...

The below code is my jsp . here im just using the same name for all the check boxes wich will be generated at run time
now im trying to retrieve all the elements in some other page. Im getting only the last element not all... please suggest something



Thank you,
Shanthi Naidu.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you trying to retrieve the parameters? For multi-valued parameters, you should use the "getParameterValues" method; "getParameter" can only return a single parameter.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an HTML/JavaScript question, moving off to JSP

Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!