• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring 3: form:radiobuttons

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic