Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to insert multiple values entered by the user through <c:forEach> loop in same database table

Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Jsp Page with a <c:ForEach> loop and which is displaying the textboxes 8 times. User can add number of passengers according to their wishes. Like if the user wants to enter 5 data, then I need to get those 5 data and to insert in the database passenger table 5 times.

How will I implement this..... Code is attached below......
Thanking You....

Posts: 9615
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can at all avoid it, do not use Struts 1. It is past end of life , unsupported, has not had an update in 6 years and has serious architectural issues.
One must use indexed properties to reference collections. We have examples in both our Struts 1 FAQ and Struts 2 FAQ.
today's feeble attempt to support the empire
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic