You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Thomas Wiradikusuma (JIRA)" <ji...@apache.org> on 2007/04/13 18:06:51 UTC

[jira] Created: (WW-1881) GenericAction support

GenericAction support
---------------------

                 Key: WW-1881
                 URL: https://issues.apache.org/struts/browse/WW-1881
             Project: Struts 2
          Issue Type: Improvement
          Components: Actions
            Reporter: Thomas Wiradikusuma


I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.

I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
Btw I'm using Spring for handling the actions.

Here's my posting in AppFuse's forum:
http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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


[jira] Commented: (WW-1881) GenericAction support

Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44313#action_44313 ] 

Jeromy Evans commented on WW-1881:
----------------------------------

Split to WW-2702 (change to CodebehindUnknownHandler to use PackageConfig.defaultClassRef)

> GenericAction support
> ---------------------
>
>                 Key: WW-1881
>                 URL: https://issues.apache.org/struts/browse/WW-1881
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Actions
>            Reporter: Thomas Wiradikusuma
>             Fix For: Future
>
>
> I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
> AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
> But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.
> I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
> Btw I'm using Spring for handling the actions.
> Here's my posting in AppFuse's forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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


[jira] Commented: (WW-1881) GenericAction support

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

Don Brown commented on WW-1881:
-------------------------------

I like this idea.  I'm in a similar situation, which I resolved by using wildcards in struts.xml so that I have one action mapping for all actions in a package.  Still I think we could do more with a plugin that uses an UnknownHandler and/or multiple action annotations on the generic action.

> GenericAction support
> ---------------------
>
>                 Key: WW-1881
>                 URL: https://issues.apache.org/struts/browse/WW-1881
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Actions
>            Reporter: Thomas Wiradikusuma
>             Fix For: 2.1.0
>
>
> I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
> AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
> But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.
> I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
> Btw I'm using Spring for handling the actions.
> Here's my posting in AppFuse's forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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


[jira] Commented: (WW-1881) GenericAction support

Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44312#action_44312 ] 

Jeromy Evans commented on WW-1881:
----------------------------------

The UnknownHandler is currently hardcoded to create an ActionSupport instance.  If the UnknownHandler creates an instance of the class specified by PackageConfig.defaultClassRef then this requirement will be met.  Won't it?

ie. on a per package basis, you can specify a generic action that will handle invocations where no other was matched.

The Unknown action handling actually already doesn't work when used with the REST Plugin as ActionSupport doesn't have an index() method, which is my real motivation for the change.

> GenericAction support
> ---------------------
>
>                 Key: WW-1881
>                 URL: https://issues.apache.org/struts/browse/WW-1881
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Actions
>            Reporter: Thomas Wiradikusuma
>             Fix For: Future
>
>
> I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
> AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
> But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.
> I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
> Btw I'm using Spring for handling the actions.
> Here's my posting in AppFuse's forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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


[jira] Updated: (WW-1881) GenericAction support

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

Don Brown updated WW-1881:
--------------------------

    Fix Version/s:     (was: 2.1.3)
                   Future

> GenericAction support
> ---------------------
>
>                 Key: WW-1881
>                 URL: https://issues.apache.org/struts/browse/WW-1881
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Actions
>            Reporter: Thomas Wiradikusuma
>             Fix For: Future
>
>
> I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
> AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
> But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.
> I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
> Btw I'm using Spring for handling the actions.
> Here's my posting in AppFuse's forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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


[jira] Updated: (WW-1881) GenericAction support

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

Don Brown updated WW-1881:
--------------------------

    Fix Version/s: 2.1.0

> GenericAction support
> ---------------------
>
>                 Key: WW-1881
>                 URL: https://issues.apache.org/struts/browse/WW-1881
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Actions
>            Reporter: Thomas Wiradikusuma
>             Fix For: 2.1.0
>
>
> I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
> AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
> But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.
> I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
> Btw I'm using Spring for handling the actions.
> Here's my posting in AppFuse's forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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


[jira] Commented: (WW-1881) GenericAction support

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45952#action_45952 ] 

Musachy Barroso commented on WW-1881:
-------------------------------------

I think there are already a few mechanisms in place to do this. Convention supports multiple @Action annotations, and multiple Unknown handlers can now be chained. Should we do more than that?

> GenericAction support
> ---------------------
>
>                 Key: WW-1881
>                 URL: https://issues.apache.org/struts/browse/WW-1881
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Actions
>            Reporter: Thomas Wiradikusuma
>             Fix For: Future
>
>
> I'm currently leveraging AppFuse for my projects. Currently I'm using Struts 2 for the Web part (previously Spring MVC).
> AppFuse has GenericDao and GenericManager which I think very useful (for lazy person like me).
> But my lazyness doesn't stop there. After using zeroconf and codebehind, I want more. I want generic action.
> I created one, it passed the test (i created a unit test) but i can't find a way to make Struts(with codebehind enabled) "aware" of this special class.
> Btw I'm using Spring for handling the actions.
> Here's my posting in AppFuse's forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=9981357&framed=y&skin=2369

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