• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with radio buttons in nested forEach loop

 
Profs Mulay
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Resently joined this group!
I am facing problems in dynamically naming the radio buttons in the following code. here all the radio buttons are considered as options for one question. Like when I select one radio button in question one and then try to select one from another question the first question's radio button gets deselected
Please tell me if there is any solution! I have no problems with EL and JSTL
My code is as follows........


Thanks and regards,
Prof's




[BSouther: Added UBB CODE tags]
[ August 08, 2007: Message edited by: Ben Souther ]
 
Profs Mulay
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry guys
it seems that the EL is not recognized in the <input type= "radio" name="${Question}" />

when I saw the source using view source it was still name="${Question}" while as per my expections it should have been name=one or neme =two or name=three
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of the JSP spec does your container support?
 
Profs Mulay
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I got the answer!
I needed to use cut in the value attribute of the button

Thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!