Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submit parent and child records using JSP

 
Shridhar Raghavan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Been a long time. :-). I need to post from the browser the 1:m db relationship in one go. That i to say, insert the parent and child records in one go. I wanted to know how do i go about this. Prefer to accomplish this only through JSP and not involve Javascript. What i have been thinking is the jsp page first loads with a simple text field asking the number of child records. This is posted back to same jsp page which then renders itself with the parent form and equal number of forms for the child table. Is this fine and if so, how can i access the multiple form data through servlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic