XDT can tell the difference between a class and method tag with the same name.
The only thing is that the @webwork.action tag creates and <action> element and the @webwork.command tag creates a <command>element. I considered what you suggested but thought it might lead to confusion. It is certainly easy enough to change though. Frank ----- Original Message ----- From: "James Cook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 3:58 PM Subject: RE: [OS-webwork] XDoclet actions.xml template. > Thanks Frank, I will try to check it out this weekend. > > Just one suggestions: > > How about using @webwork.action for *both* class decalrations and methods > declarations? Can the XDT tell the difference between the same tagname used > for class and method? > > thanks, > jim > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of > > Frank Febbraro > > Sent: Friday, April 04, 2003 3:25 PM > > To: [EMAIL PROTECTED] > > Subject: [OS-webwork] XDoclet actions.xml template. > > > > > > For those that care, > > > > I wrote an XDoclet Template to produce an actions.xml file. > > > > In your build file: > > <webworkconfigproperties > > destdir="${classes}" > > templateFile="${xdoclet.merge.dir}/webwork_actions.xdt" > > destinationFile="actions.xml" > > /> > > > > It operates on the following tags. > > > > Class Tag: @webwork.action > > Params: name, success, input, error > > > > Method Tag: @webwork.command > > Params: name, success, input, error > > Comment: If name is not specified it takes a method called "doSave" and > > makes the name "save" > > > > Class AND/OR Method Tag: @webwork.view > > Params: name, value > > > > Examples: > > Class Tag: > > /** > > * @webwork.action > > * name="document" > > * error="/error.jsp" > > * @webwork.view name="test" value="one.jsp" > > * @webwork.view name="test2" value="two.jsp" > > */ > > > > Method tag: > > /** > > * @webwork.command > > * success="/document/documentViewer.jsp" > > * @webwork.view name="foo" value="one.jsp" > > * @webwork.view name="bar" value="two.jsp" > > */ > > > > > > Produces the following actions.xml: > > <?xml version="1.0" encoding="UTF-8"?> > > <actions> > > > > <action name="xxx.action.DocumentAction" alias="document"> > > <view name="error">/error.jsp</view> > > <view name="test">one.jsp</view> > > <view name="test2">two.jsp</view> > > > > <command name="save" alias="document!save"> > > <view name="success">/document/documentViewer.jsp</view> > > <view name="foo">one.jsp</view> > > <view name="bar">two.jsp</view> > > </command> > > > > </action> > > > > </actions> > > > > > > Not sure if there is a better place to send this. Hopefully it will help > > someone. > > > > Thanks, > > Frank > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork