Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Binding a model to a JSP form  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,

i have a tricky situation and want some help on the same ..
i have a jsp and a spring controller.
in the jsp i have a requirement where in there are text boxes to fill up.
ex: student info.
student name and roll no and i have add more button
so i can have muliple input boxes which goes as

student name: "     "   roll no: ="   "  <add more>
student name: "    "     roll no:= "    " <add more>
submit

i am trying to use the form


hence i created a class called Student.java

i create a form

i want to bind this studentform to the jsp and get the same to the controller using modelattribute.


how can i do this.
is this possible.

thanks
Amit



 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!