You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Gunnar Hillert (JIRA)" <ji...@apache.org> on 2007/10/14 05:38:38 UTC

[jira] Created: (WW-2252) Ability to Configure MessageStoreInterceptor via 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


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.


[jira] Commented: (WW-2252) Ability to Configure MessageStoreInterceptor via Annotations

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Issue Comment Edited: (WW-2252) Ability to Configure MessageStoreInterceptor via Annotations

Posted by "Gunnar Hillert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42395 ] 

hillert edited comment on WW-2252 at 10/13/07 8:52 PM:
--------------------------------------------------------------

Attached a version of the MessageStoreInterceptor that provides Annotation Support

@StoreMessages
@RetrieveMessages

      was (Author: hillert):
    A version of the MessageStoreInterceptor that provides Annotation Support

@StoreMessages
@RetrieveMessages
  
> 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.


[jira] Updated: (WW-2252) Ability to Configure MessageStoreInterceptor via Annotations

Posted by "Gunnar Hillert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunnar Hillert updated WW-2252:
-------------------------------

    Attachment: MessageStoreInterceptor_10-13-2007.zip

A version of the MessageStoreInterceptor that provides Annotation Support

@StoreMessages
@RetrieveMessages

> 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.


[jira] Commented: (WW-2252) Ability to Configure MessageStoreInterceptor via Annotations

Posted by "Gunnar Hillert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42462 ] 

Gunnar Hillert commented on WW-2252:
------------------------------------

Thanks! This will work perfectly for me. 

The reason why I implemented the two annotations was to mimic the XML-configuration-based feature set. Hence it was the easiest to implement. 

> 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.


[jira] Resolved: (WW-2252) Ability to Configure MessageStoreInterceptor via Annotations

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ 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.