Yep, you gotta extend the right class. Try to extend org.apache.struts.tiles.ActionController
instead > -----Original Message----- > From: Jim Theodoridis [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 2:27 PM > To: Struts Users Mailing List > Subject: Tiles and ControllerClass > > Hi. > > In tiles-def.xml i have the following definition > > <definition name=".poll" path="/tiles/layouts/tileLayout.jsp" > controllerClass="gr.tera.portal.actions.poll.GetPollAction"> > <put name="title" value="Poll" /> > <put name="tileBody" value="/pages/poll/poll.jsp" /> > </definition> > > But when i run the application i am getting the following message > > javax.servlet.ServletException: Controller of class > 'gr.tera.portal.actions.poll.GetPollAction' should implements 'Controller' > or extends 'Action' > at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tI > mpl.java:533) > at org.apache.jsp.vboxLayout_jsp._jspService(vboxLayout_jsp.java:100) > .......... > > The class GetPollAction extends the Action class > > I am using Struts 1.2b > Tomcat 1.24 > > To solve the problem i use the following > > <definition name=".poll" path="/tiles/layouts/tileLayout.jsp" > > <put name="title" value="Poll" /> > <put name="tileBody" value="/poll.do" /> > </definition> > in tiles-def.xml > > and in struts-config.xml this > > <action path="/pollAction" > type="gr.tera.portal.actions.poll.GetPollAction"> > <forward name="success" path="/pages/poll/poll.jsp"/> > </action> > > is this write? or will be a problem? > > Thanx > > Theodoridis Dimitris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]