From: Chad B. <cwb...@us...> - 2004-09-28 22:05:43
|
User: cwbrandon Date: 04/09/28 15:05:34 Modified: andromda-bpm4struts/src/test/expected cartridge-output.zip andromda-bpm4struts/src/templates StrutsJSP.vsl Log: improve the passing of parameters in display tag lists Revision Changes Path 1.45 +1012 -188 cartridges/andromda-bpm4struts/src/test/expected/cartridge-output.zip <<Binary file>> 1.60 +6 -4 cartridges/andromda-bpm4struts/src/templates/StrutsJSP.vsl Index: StrutsJSP.vsl =================================================================== RCS file: /cvsroot/andromda/cartridges/andromda-bpm4struts/src/templates/StrutsJSP.vsl,v retrieving revision 1.59 retrieving revision 1.60 diff -u -w -r1.59 -r1.60 --- StrutsJSP.vsl 27 Sep 2004 18:19:32 -0000 1.59 +++ StrutsJSP.vsl 28 Sep 2004 22:05:34 -0000 1.60 @@ -203,14 +203,16 @@ ## as a table link #if (${parameter.tableLinkColumnName}) #set ($propertyName = "row.${parameter.tableLinkColumnName}") -#if ($velocityCount == 1) - <c:set var="requestString" value="?${parameter.name}=${${propertyName}}"/> #else - <c:set var="requestString" value="${requestString}&${parameter.name}=${${propertyName}}"/> +#set ($propertyName = "form.${parameter.name}") #end +#if ($velocityCount == 1) +#set ($requestPath = "${link.action.actionPath}.do?${parameter.name}=${${propertyName}}") +#else +#set ($requestPath = "${requestPath}&${parameter.name}=${${propertyName}}") #end #end - <html:link page="${link.action.actionPath}.do${requestString}"> + <html:link page="${requestPath}"> #set ($linkName = "row.${link.tableLinkColumnName}") ${${linkName}} </html:link> |