• Post Reply Bookmark Topic Watch Topic
  • New Topic

Binding a model to a JSP form

 
Amit Dalvi
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



 
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!