Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic