Re: struts config trouble with Actions inheritance

"Nathan Voxland" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
An alternate tool for managing your struts-config that doesn't have this
problem is Hoople (http://www.sundog.net/index.php/hoople/page/struts/).


It is similar to XDoclet, but rather than keeping your action mapping
attributes in the java files, you create XML config files in your
document root where your action mapping would normally be if it was a
real file (/User/LoadCrate.do in your case).

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Emmanouil Batsis
Sent: Wednesday, July 05, 2006 9:21 AM
To: [email protected]
Subject: Re: [Xdoclet-user] struts config trouble with Actions
inheritance


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=12164
2
>_______________________________________________
>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
_______________________________________________
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.