This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring 3: form:radiobuttons

 
Vipul Mehta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to use spring3 form:radiobuttons tage ??
here is my current code, which is working

bean class


jsp file


Controller class to load JSP File


Now here i have returned only one commandObject name 'schedulerCommand'.
Considering that jsp page is a registration page and has a list of radio button, one for sex, 2nd for course, 3rd for Class Studying etc... and if i go by this method of having all list object stored in the bean..which is like hard-cording way..

i rather want to have in the foll. way,


These list object will have list of Lookup class and in turn will have a single entry.
and i want to have access for all the these list object in jsp..how can i achieve in the above code ??
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you are asking but it sounds like you want to add multiple lists to the model so its available in the JSP



or alternatively just return the String view and declare a model object in the parameter list. Objects added to the model will be available in the view.'
 
Vipul Mehta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill Gorder wrote:I am not sure what you are asking but it sounds like you want to add multiple lists to the model so its available in the JSP




Thanks...this worked for me...
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!