File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring 3: form:radiobuttons

 
Vipul Mehta
Greenhorn
Posts: 6
  • 0
  • 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
  • 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
  • 0
  • 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...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic