Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a question on data submitting

 
David Liu
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the case is:
first, user execute a query
and display the queried data in the <html:text> of jsp using tag <logic:iterate>
and I store the resultset in session and jsp get resultset from session
but after the query the user can modify the data and update the data in DB
but I wonder how can I transfer the modified resultset to ActionForm
and ActionForm transfers it to Action
because the resultset is a data-bean list and the ActionForm is a data-bean
this is the question
thanks for help
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Data Transfer Object pattern is useful in situations like this. [This tutorial makes extensive use of the pattern.
If your UI allows the user to change more than one record at a time, you'll need to put a collection of DTOs in your form as an indexed property.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic