Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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