• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass the data from jsp to model

 
giri shetty
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
here i have a question i have JSP page in that i have a warehouse locations and under each warehouse location i have different building name,building id's,and building capacity .what my question is if user can add locations or building details under that location so what i have to do is if user clicks "MORE" button i have to add some textfields dynamically and if user enters something and he clicks"UPDATE" button we have update the data means we have to pass the data from JSP to Model .
note:user can click "MORE" button couple of time so i have to add couple of text boxes and then user clicks "UPDATE" BUTTON SO i have pass the entire data to model.
thanks in advance
giri
 
Gowrishankar Mudaliar
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the DHTML to add dynamic fields. The things you need to do is to create a <DIV> with id attribute and then use some javascript function to deal with innerHTML to dynamically create controls.
Further you should follow some naming convention to identify the dynamically created controls in the serverside upon page submit.
Hope this helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic