struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hernán <>
Subject Re: Inquiry
Date Fri, 06 Sep 2013 12:54:17 GMT
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">

        <action name="GenericPresentationAction_*"
class="GenericPresentationAction" method="{1}">
            <result name="input" type="dispatcher">
            <result name="success" type="dispatcher">
            <result name="list" type="dispatcher">

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 name="GenericPresentationAction"
        <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" />

In spring-data.xml:

    <bean id="genericHibernateDAO"
class="ro.dao.hibernate.GenericHibernateDAO" abstract="true"
        <property name="sessionFactory" ref="sessionFactory" />

In spring-servlet.xml:

    <bean id="genericPresentationDAO"
parent="genericHibernateDAO" autowire="byName" />

In spring-servlet-setup.xml:

    <bean id="GenericPresentationAction"
        <property name="genericPresentationDAO"
ref="genericPresentationDAO" />

On Thu, Sep 5, 2013 at 9:05 PM, <> 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 <>
> Date: Thu, 5 Sep 2013 19:32:14
> To: Struts Users Mailing List<>
> Reply-To: "Struts Users Mailing List" <>
> 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


View raw message