You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jeromy Evans (JIRA)" <ji...@apache.org> on 2008/07/01 09:23:05 UTC

[jira] Created: (WW-2702) Codebehind unknown action handling should create package's default action class

Codebehind unknown action handling should create package's default action class
-------------------------------------------------------------------------------

                 Key: WW-2702
                 URL: https://issues.apache.org/struts/browse/WW-2702
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - CodeBehind
    Affects Versions: 2.1.2
            Reporter: Jeromy Evans
            Priority: Minor
             Fix For: 2.1.3


CodeBehindUnknownHandler is currently hardcoded to create an ActionSupport instance for unknown actions.

If the unknown handler is changed to use the PackageConfig.defaultClassRef then users/plugins can substitute in an alternate unknown action.

This change is required for handling unknown actions when using the REST plugin as ActionSupport only has an execute() method.  With this change the REST Plugin can define a more appropriate default action to use. 

Split from WW-1881

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


[jira] Resolved: (WW-2702) Codebehind unknown action handling should create package's default action class

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

Jeromy Evans resolved WW-2702.
------------------------------

    Resolution: Fixed
      Assignee: Jeromy Evans

Committed change as described.  REST plugin provides a default-class-ref extending ActionSupport with an index() method so it can support unknown actions (for the most common index case only).

> Codebehind unknown action handling should create package's default action class
> -------------------------------------------------------------------------------
>
>                 Key: WW-2702
>                 URL: https://issues.apache.org/struts/browse/WW-2702
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - CodeBehind
>    Affects Versions: 2.1.2
>            Reporter: Jeromy Evans
>            Assignee: Jeromy Evans
>            Priority: Minor
>             Fix For: 2.1.3
>
>
> CodeBehindUnknownHandler is currently hardcoded to create an ActionSupport instance for unknown actions.
> If the unknown handler is changed to use the PackageConfig.defaultClassRef then users/plugins can substitute in an alternate unknown action.
> This change is required for handling unknown actions when using the REST plugin as ActionSupport only has an execute() method.  With this change the REST Plugin can define a more appropriate default action to use. 
> Split from WW-1881

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