Update of /cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30896/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources
Modified Files: struts_config_xml.xdt Log Message: XDT-26, XDT-715, XDT-740: added action-path parameter to @struts-action-forward, @struts-action-set-property and @struts-exception to be able to map those elements top specific action elements when defining more than one @struts.action tag per Action class Index: struts_config_xml.xdt =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources/struts_config_xml.xdt,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** struts_config_xml.xdt 1 Jan 2005 17:36:06 -0000 1.19 --- struts_config_xml.xdt 9 Jun 2005 11:17:40 -0000 1.20 *************** *** 60,63 **** --- 60,65 ---- <XDtClass:forAllClasses type="org.apache.struts.action.Action"> <XDtClass:forAllClassTags tagName="struts:action"> + <XDtComment:comment>Set the variable to the "path" attribute of the @struts.action tag:</XDtComment:comment> + <XDtClass:setVariableToClassTagValue tagName='struts:action' paramName='path'> <action path="<XDtClass:classTagValue tagName="struts:action" paramName="path"/>" *************** *** 99,102 **** --- 101,106 ---- > <XDtClass:forAllClassTags tagName="struts:action-set-property"> + <XDtComment:comment>Only if the "action-path" is either not specified or equals the variable set before.</XDtComment:comment> + <XDtClass:ifClassTagValueEqualsVariable tagName="struts:action-set-property" paramName="action-path" evaluateWhenNotPresent="true"> <set-property <XDtClass:ifHasClassTag tagName="struts:action-set-property" paramName="id"> *************** *** 106,111 **** --- 110,118 ---- value="<XDtClass:classTagValue tagName="struts:action-set-property" paramName="value"/>" /> + </XDtClass:ifClassTagValueEqualsVariable> </XDtClass:forAllClassTags> <XDtClass:forAllClassTags tagName="struts:action-exception"> + <XDtComment:comment>Only if the "action-path" is either not specified or equals the variable set before.</XDtComment:comment> + <XDtClass:ifClassTagValueEqualsVariable tagName="struts:action-exception" paramName="action-path" evaluateWhenNotPresent="true"> <exception key="<XDtClass:classTagValue tagName="struts:action-exception" paramName="key"/>" *************** *** 124,129 **** --- 131,139 ---- </XDtClass:ifHasClassTag> /> + </XDtClass:ifClassTagValueEqualsVariable> </XDtClass:forAllClassTags> <XDtClass:forAllClassTags tagName="struts:action-forward"> + <XDtComment:comment>Only if the "action-path" is either not specified or equals the variable set before.</XDtComment:comment> + <XDtClass:ifClassTagValueEqualsVariable tagName="struts:action-forward" paramName="action-path" evaluateWhenNotPresent="true"> <forward <XDtClass:ifHasClassTag tagName="struts:action-forward" paramName="className"> *************** *** 137,141 **** --- 147,153 ---- redirect="<XDtClass:classTagValue tagName="struts:action-forward" paramName="redirect" default="false" values="true,false"/>" /> + </XDtClass:ifClassTagValueEqualsVariable> </XDtClass:forAllClassTags> + </XDtClass:setVariableToClassTagValue> </action> </XDtClass:forAllClassTags> ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel