struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17614] New: - tiles componentClass doesn't handle class Action
Date Mon, 03 Mar 2003 19:22:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17614>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17614

tiles componentClass doesn't handle class Action

           Summary: tiles componentClass doesn't handle class Action
           Product: Struts
           Version: 1.1 RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Tiles framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: lquijano@hotpop.com


I have the following definition:

<definition name="someAction" path="/jsp/someJsp.jsp"
controllerClass="foo.SomeAction">

SomeAction is declared like this:

public class SomeAction extends Action {
...
}

It seems that ComponentDefinition.createControllerFromClassname(String
classname) can't handle this, though, since the interface Controller is hard-wired:

Class requestedClass = TilesUtil.applicationClass(classname);
     Object instance = requestedClass.newInstance();
     /*
     if( instance instanceof org.apache.struts.action.Action )
       { // wrap strutsinstance
       instance = new ActionController( (Action)instance );
       } // end if
     */
     if(log.isDebugEnabled())
       log.debug( "Controller created : " + instance );
     return (Controller)instance;
}

Leonardo

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message