aspose file tools*
The moose likes Struts and the fly likes Having forms and tables in success page and send it to action class on submit ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Having forms and tables in success page and send it to action class on submit ?" Watch "Having forms and tables in success page and send it to action class on submit ?" New topic
Author

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

Sowmya Ramnath
Greenhorn

Joined: Apr 26, 2013
Posts: 1
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

Joined: May 05, 2010
Posts: 213

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

Joined: Oct 29, 2001
Posts: 8997
    
    9

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.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Having forms and tables in success page and send it to action class on submit ?