Ok, thank you for your response. I will add some code snippets in order you
can help me.
First of all the hierarchy that extends ActionSupport, then the most
important fragments. I hope you can help me. Thank you.
Attached: (extends = ->)
GenericPresentationAction -> CreateReadUpdateRemoveDeleteAction ->
BaseCreateReadUpdateRemoveDeleteAction -> BaseAction -> ActionSupport
Then some code snippets: (In struts-setup.xml default package is tiles)
<action name="GenericPresentationAction"
class="GenericPresentationAction" method="listAll">
<result name="list">
${destination}
</result>
</action>
<action name="GenericPresentationAction_*"
class="GenericPresentationAction" method="{1}">
<result name="input" type="dispatcher">
<param
name="location">/WEB-INF/jsp/setup/genericPresentationForm.jsp</param>
</result>
<result name="success" type="dispatcher">
<param
name="location">/WEB-INF/jsp/setup/genericPresentationForm.jsp</param>
</result>
<result name="list" type="dispatcher">
<param
name="location">/WEB-INF/jsp/setup/genericPresentationList.jsp</param>
</result>
</action>
In tiles.xml:
<definition name="AdministratorBase"
template="/WEB-INF/jsp/setup/layout.jsp" >
<put-attribute name="header" value="/WEB-INF/jsp/setup/header.jsp"
/>
<put-attribute name="menu" value="/WEB-INF/jsp/setup/menu.jsp" />
<put-attribute name="footer" value="/WEB-INF/jsp/setup/footer.jsp"
/>
</definition>
<definition name="GenericPresentationAction"
extends="AdministratorBase">
<put-attribute name="title" value="Presentación" />
<put-attribute name="description" value="Administrar Contenido" />
<put-attribute name="content"
value="/WEB-INF/jsp/setup/genericPresentation.jsp" />
</definition>
In spring-data.xml:
<bean id="genericHibernateDAO"
class="ro.dao.hibernate.GenericHibernateDAO" abstract="true"
autowire="byName">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
In spring-servlet.xml:
<bean id="genericPresentationDAO"
class="com.tipuana.rf.dao.hibernate.GenericPresentationDAOHibernate"
parent="genericHibernateDAO" autowire="byName" />
In spring-servlet-setup.xml:
<bean id="GenericPresentationAction"
class="com.tipuana.rf.action.setup.GenericPresentationAction"
scope="prototype">
<property name="genericPresentationDAO"
ref="genericPresentationDAO" />
</bean>
On Thu, Sep 5, 2013 at 9:05 PM, <[email protected]> wrote:
> You need to provide some code if you want some answers. Where is
> destination defined? What's your action definition? Your tiles.xml? The
> stacktrace?
>
> JL
> Sent via BlackBerry from T-Mobile
>
> -----Original Message-----
> From: Hernán <[email protected]>
> Date: Thu, 5 Sep 2013 19:32:14
> To: Struts Users Mailing List<[email protected]>
> Reply-To: "Struts Users Mailing List" <[email protected]>
> Subject: Inquiry
>
> Hi you all developers! I'm currently developing a web application, I have
> added a new CRUD action which extend several abstract classes whereas the
> first one extend action support. The web app uses tiles and when trying to
> find a Tile Definition to render ${destination} it can't find it. It says,
> cannot find ' ' definition. Other instance variables which are declared in
> the upper most class of the class hierarchy (I mean after action support)
> aren't able to be seen. I wonder what might be wrong since all other
> actions work properly. My CRUD system is based in the one that exists in
> struts2 in action book it is a version I improved. This action implements
> ModelDriven interface, whilst the majority doesn't. Thank you. I hope you
> can help me! Have a nice day!
>
> --
> Hernán
>
>
--
Hernán
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]