Re: struts config trouble with Actions inheritance

Emmanouil Batsis <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
This looks like the following bug:

http://opensource.atlassian.com/projects/xdoclet/browse/XDT-683

Emmanouil Batsis wrote:

>Suppose i have this in a Struts Action class
>
> * @struts.action path="/User/LoadCreate"
> *                         name="EmployeeCrudForm"
> *                         input="/global/error.jsp"
> *                         scope="request"
> *                         validate="false"
>
>
>and also have another class that extends the one above
>
> * @struts.action path="/Employee/LoadCreate"
> *                         name="EmployeeCrudForm"
> *                         input="/global/error.jsp"
> *                         scope="request"
> *                         validate="false"
>
>then the generated struts-config.xml mapping for the first Action is cool:
>
><action path="/User/LoadCreate" type="foo.bar.UserLoadCreateAction"
>
>but for the second class, two mappings are generated:
>
><action path="/Employee/LoadCreate" type="foo.bar.EmployeeLoadCreateAction"
>
>which is right, and
>
><action path="/User/LoadCreate" type="foo.bar.EmployeeLoadCreateAction"
>
>whis points to the subclass but uses the path of the superclass, making 
>it inaccessible.
>
>Any ideas what am i missing here?
>
>Many thanks,
>
>Manos
>
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>xdoclet-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>  
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.