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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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?
 
Don't get me started about those stupid light bulbs.
 
subject: Using MessageStoreInterceptor on selective messages.