• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Instantiation Exceptions

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to use tiles with struts and i get the following error.What I am trying to do is to forward to a tile definition from an action maping and in my tile-definitions load a tile which has its own action. I get the following error

TilesRequestProcessor - -Can't create associated controller <java.lang.InstantiationException: Controller of class 'com.bgc.struts.common.CartAction' should implements 'Controller' or extends 'Action'

My custom Action does extend the Action.
My definitions are as follows
struts-config.xml
==============
<action path="/jsp/nextscreen.jsp" type="wizard.action.WizardNextAction" parameter="nextpage">
<forward name="showscreen" path="wizzardpage" />
<forward name="exceptionscreen" path="exceptionpage"/>
<forward name="newscreen" path="newpage" />
</action>
tiles-defs.xml
==============
<definition name="newpage" path="/jsp/newscreen.jsp" controllerClass="wizard.action.WizardNewAction">
<put name="Top" value="/jsp/top.jsp" />
<put name="title" value="Wizzard New Page" />
<put name="Left" value="/jsp/left.jsp" />
<put name="Footer" value="/jsp/footer.jsp" />
<put name="Content" value="/jsp/newscreen.jsp" />
</definition>

Any Idea as to what might the problem be? Any insights would be appretiated.

Thanks,
sudeep
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic