Discussions

Web tier: servlets, JSP, Web frameworks: <html:llink> struts with multiple params

  1. <html:llink> struts with multiple params (3 messages)

    Is there a way to specify multiple params to a link tag, or the equivalent? Or do I have to do it myself by generating a href for an anchor tag?
  2. See for example Link taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm
  3. See for example Link taglib in Coldtags suite:

    > http://www.servletsuite.com/jsp.htm

    You can pass the struts link tag a hash to give it multiple parameters, but that involves either building the hash in your action class and retrieving it from the request or using scriptlets to build the hash in the jsp. I would personally go with the jstl c:url tag which provides a much cleaner way to add multiple parameters in a link.
  4. Elegant solution[ Go to top ]

    This Coldbean's link tag is really very simple and nice solution:

    <go:link href="http://www.server.com/nextpage.htm">
     <go:setText>Next page</go:setText>
     <go:setParameter name="A">value for A</go:setParameter>
     <go:setParameter name="B">value for B</go:setParameter>
    </go:link>