aspose file tools
The moose likes JSP and the fly likes problem with radio buttons in nested forEach  loop Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "problem with radio buttons in nested forEach  loop" Watch "problem with radio buttons in nested forEach  loop" New topic
Author

problem with radio buttons in nested forEach loop

Profs Mulay
Greenhorn

Joined: Jul 06, 2007
Posts: 3
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

Joined: Jul 06, 2007
Posts: 3
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

Joined: Dec 11, 2004
Posts: 13410

What version of the JSP spec does your container support?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Profs Mulay
Greenhorn

Joined: Jul 06, 2007
Posts: 3
hello,
I got the answer!
I needed to use cut in the value attribute of the button

Thanks,
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: problem with radio buttons in nested forEach loop
 
Similar Threads
Object does not support property error!
passing a parameter to an action class
JSTL choose not executing as expected
JSTL Problem
Need advice for converting this page to JSF