Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Pay attention! Tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic