Sorry, ignore my last post.  I figured it out.  The call to
ansm.getNumberType() was just returning an empty string.  Sorry to waste
space in your inbox.

-----Original Message-----
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 1:04 PM
To: 'Struts Users Mailing List'
Subject: RE: <html:link /> - add parameters


Hey everyone,

I'm trying to add 2 dynamic parameters to a link.  Someone posted the
following solution a while back.  I'm using this, slightly modified, within
a logic:iterate tag.  However, the param names are showing up in the
generated link, but the param values aren't.  Should I be able to use
ansm.getNumberType() within the scriptlet?  (ansm refers to the object
storing the current element in the collection I'm iterating through.)  Any
help would be really appreciated.
Thanks in advance!

- Keith

_________________________________

<title>Test html:link Tag</title>
<%
  String newValue = "New string value";
  pageContext.setAttribute("newValue", newValue);
  java.util.HashMap newValues = new java.util.HashMap();
  newValues.put("floatProperty", new Float(444.0));
  newValues.put("intProperty", new Integer(555));
  newValues.put("stringArray", new String[]
   { "Value 1", "Value 2", "Value 3" });
  pageContext.setAttribute("newValues", newValues);
%>
--------------------
  <tr>
    <td colspan="4" align="center">
      <html:link action="/html-link"
                 name="newValues">
        Float, int, and stringArray via name (Map)
      </html:link>
    </td>
  </tr>

-- 
Best regards,
 Nikolay                            mailto:[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to