File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes pass the data from jsp to model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "pass the data from jsp to model" Watch "pass the data from jsp to model" New topic
Author

pass the data from jsp to model

giri shetty
Greenhorn

Joined: Jan 22, 2004
Posts: 27
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

Joined: Oct 20, 2001
Posts: 39
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass the data from jsp to model