[ 
https://issues.apache.org/struts/browse/WW-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Husted resolved WW-2252.
----------------------------

    Resolution: Not A Problem

> Ability to Configure MessageStoreInterceptor via Annotations
> ------------------------------------------------------------
>
>                 Key: WW-2252
>                 URL: https://issues.apache.org/struts/browse/WW-2252
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Interceptors
>    Affects Versions: 2.0.11
>            Reporter: Gunnar Hillert
>             Fix For: 2.1.3
>
>         Attachments: MessageStoreInterceptor_10-13-2007.zip
>
>
> I started working more with the SmartUrls Plugin 
> http://cwiki.apache.org/S2PLUGINS/smarturls-plugin.html
> This allows me to configure actions without XML configuration in struts.xml
> The works great but here is my problem: 
> After a form submission and processing the form I like to REDIRECT to the 
> success page and also provide a success message to the user. Using XML 
> configuration this can be achieved with the MessageStoreInterceptor 
> (http://struts.apache.org/2.x/docs/message-store-interceptor.html)
> However, there is no way to achieve the same effect when using the SmartUrls 
> Plugin (Annotation-driving configuration of actions)
> Thus, in my opinion it would be an easy fix to provide 2 additional 
> method-level annotations to the MessageStoreInterceptor:
> @RetrieveMessages
> @StoreMessages
> (I will attach a version shortly)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to