File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
     
    Threads others viewed
    Using MessageStoreInterceptor on selective messages.
    putting a value in request scope in struts2 from jsp
    changing the context
    Redirecting from popup window
    Sending a List to another Action class
    IntelliJ Java IDE