• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

idea of how to save records/ table dynamically ?

 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, good day , i currently maintain on pure jsp pages(without even servlet), my problem is, i have generate a record table say it contains 3 records, and the records table data is actually from List by session.getAttribute("recordList"), which look like below



however, there have some fields which is editable, in this case, qty1 and qty2 are the field allow editable, my problem now is, after user edit, when he/she click on save button, what are the good idea to save these records into DB ?

limitation : it is pure jsp page, with no servlet but pojo or helper class is the only i can code

thank you very much for guidance
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As they are the best tools for use in conjunction with JSPs for a job such as this, why are you discounting using servlets?
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bear, if using servlet, how the solution would be ?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This a very standard pattern that you would can find lots of information on.

Basically, your form would be submitted to a servlet which would then delegate the actual database manipulation to (preferably UI-agnostic) business logic classes. Upon completion of the processing, the servlet forwards oe redirects to a JSP page to render the resulting view.
 
reply
    Bookmark Topic Watch Topic
  • New Topic