Got it, 'name' and 'label' are attribute names of the component tag. So changing the parameter name to something other than those did the trick.
----- Original Message ----- From: "Eric Mckenna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: November 21, 2003 10:55 AM Subject: [OS-webwork] Can't pass Strings to webwork:component via webwork:param > Can not seem to get my template to print out a String passed to it via a > param tag nested within a webwork component. I've looked through the list > and looked around on google so I'm hoping someone on this list will have an > answer for me. > > Here's the code and I'm using WebWork 1.4. > HTML snippet > ... > <td class="agreementsResultsHeader"> > <ww:component template="sortlink.jsp"> > <ww:param name="'label'" value="'Type'"/> > <ww:param name="'property'" value="'type'"/> > </ww:component> > </td> > ... > > template(sortlink.jsp): > <%@ taglib uri="webwork" prefix="webwork" %> > <a href="<webwork:url includeParams="'all'"> > <webwork:if test="$ascending == 'true'"> > <webwork:param name="'ascending'" value="'false'"/> > </webwork:if> > <webwork:else> > <webwork:param name="'ascending'" value="'true'"/> > </webwork:else> > <webwork:param name="'property'" value="parameters['property']"/> > </webwork:url>"> > **<webwork:property value="parameters['label']"/>** > </a> > > My problem arises with the **..** part of the template. When rendered the > property outputs '[EMAIL PROTECTED]' for the label. So this looks like > the property using Object.toString() instead of recognizing the property as > a String. I'm really stumped since the use of parameters['property'] above > the label works fine. > > thanks, > eric. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork