I've seen you post this message in several places but I have yet to see any evidence of why this is better than XDoclet? Care to offer any? If it's for reference purposes, why can't you just refer to the generated struts-config.xml
file? It's not like I refer to the XDoclet attributes in my source files for the life of the application. I write it once and its done.
A single location (generated file) is better as far as I'm concerned, and who wants their document root litered with XML files? I'm interested to know, do you hand code the XML files? I, like most programmers, am not a huge fan of typing out XML files. Where is the metadata for the mappings? Is it the XML files themselves?
On 7/6/06, Nathan Voxland <[EMAIL PROTECTED]> wrote:
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: xdoclet-user@lists.sourceforge.net
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
> xdoclet-user@lists.sourceforge.net
>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
xdoclet-user@lists.sourceforge.net
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
xdoclet-user@lists.sourceforge.net
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 xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user