The moose likes Struts and the fly likes Pass ActionMessages from one Action to another action class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Pass ActionMessages from one Action to another action class" Watch "Pass ActionMessages from one Action to another action class" New topic
Author

Pass ActionMessages from one Action to another action class

Nick Sher
Ranch Hand

Joined: Nov 10, 2008
Posts: 78
Hi,

I use a popup window to create or edit an object. Once the operation is performed I want to show the success message when the parent window is refreshed. So, here are the steps I follow:
  • Open the object to edit.
  • Popup window opens, do Edit , Save. (Action1 handles this) Save closes popup window
  • Parent window refresh (Action2 handles this).


  • I am setting the success message in Action1, do a forward to Action2. How do I pass the messages to Action2?

    Please help.


    Nick
    Nick Sher
    Ranch Hand

    Joined: Nov 10, 2008
    Posts: 78
    Fixed it myself, I used store interceptor.
     
     
    subject: Pass ActionMessages from one Action to another action class
     
    MyEclipse, The Clear Choice