You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2007/10/28 01:54:39 UTC
[jira] Commented: (WW-2252) Ability to Configure
MessageStoreInterceptor via Annotations
[ https://issues.apache.org/struts/browse/WW-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42461 ]
Don Brown commented on WW-2252:
-------------------------------
In WW-2276, I added a new mode, AUTOMATIC, that will automatically handle the case you mention, bringing messages across a redirect. If this works for you, do you still think we need the annotations?
> 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
> 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.