Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Having forms and tables in success page and send it to action class on submit ?

 
Sowmya Ramnath
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

This could be a naive one. But, moderator please, understand that I'm starting struts.

I'm having a page, lets call A where user selects something and submits. My action class collects those values and fetches some records from DB based on the values collected from A, and the is displayed as table in success page B.
Now, I want to collect some information from this success page B [specifically, I want to update some selected records in that table with a check-box value that user provides]. Have a form and collect some values from B and send it to action class and update the database. I hope the use case is clear. Is it possible to do this in struts ?Because, when I coded to have form with submit button in page B, the submit button was not displayed. I'm doubtful if this can be done. Suggestions are welcome. Also, is it possible to send selected table contents over Form to Action class.
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts it is possible to edit in a table and submit. I have a shoet blog post here where I explain one way that I've done it.
 
Joe Ess
Bartender
Posts: 9302
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sowmya Ramnath wrote:when I coded to have form with submit button in page B, the submit button was not displayed.


I have seen problems with "wizard" type workflows where the URL does not get changed and the second page wants to submit to the first action. If a button isn't getting displayed, that sounds like an HTML coding error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic