aspose file tools*
The moose likes Struts and the fly likes Using MessageStoreInterceptor on selective messages. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using MessageStoreInterceptor on selective messages." Watch "Using MessageStoreInterceptor on selective messages." New topic
Author

Using MessageStoreInterceptor on selective messages.

Nick Sher
Ranch Hand

Joined: Nov 10, 2008
Posts: 78
Hi,

I edit an object in a popup window. On success, I close this popup window and display success message in parent window, and on failure, I display the error message in popup window.

I am using MessageStoreInterceptor to display the success message on parent page. However, the failure message is also displayed on the parent page.

Is there anyway I can propagate only success messages and not the failure messages?

Thanks.


Nick
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Not with the out-of-the-box functionality, no.
Nick Sher
Ranch Hand

Joined: Nov 10, 2008
Posts: 78
I gave up after trying to find a workaround. How do I manage to do this?
Nick Sher
Ranch Hand

Joined: Nov 10, 2008
Posts: 78
I don't know, for some reason, this seems to me like a basic requirement that shows up again and again for me. Is there anyway to display a message after a redirect action.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sure, the message store interceptor, no?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using MessageStoreInterceptor on selective messages.
 
Similar Threads
Is it possible to display the success page as a pop up window
Pass ActionMessages from one Action to another action class
how to close child window
Refresh parent window without closing popup with struts validation
Is it possible to display the success page as a pop up window