• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

SimpleFormController work flow

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm getting very confused on how to get my workflow started. Many of the examples and tutorials that I have seen are simple to understand but my workflow is a little different.

What I'm trying to accomplish is to have an initial form view (ViewController/view.jsp) that contains a set of checkboxes and once a user checks a box and clicks on the 'Edit' button, I want the form to be redirected to a different form (EditController/edit.jsp) which is partially pre-populated with the previous form's parameter data.

I'm getting confused with how to redirect these controllers from one controller to another in this scenario. When I click on the 'Edit' button I want the EditController to be in control and the edit.jsp should be displayed.

Any suggestions on how to set this up? I think it's just a matter of getting the context files mapping to the correct spots.

Thanks.



 
laura mccord
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I feel like I am almost on the right track.



After my ViewController form has been submitted I want the doSubmitAction to be done from the EditController if possible. Or, if the doSubmitAction has to be done from the (original form) ViewController is there a way to then go to the EditController after the doSubmitAction method is executed?

Thanks.
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know what you're trying to do, but the controller should be EditController.
 
laura mccord
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, now I'm trying another route.

If I have a controller that displays a form and if I process the submission using doSubmitAction() but after the processing is done I would like to go to another controller to display a separate form.... Is this possible using the successView?

Thanks.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic