Good Call-

The doc located at
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#link
states that an action attribute forward,href,linkName or Page must be specified Also because you are passing in a string the EL Tag parser might choke on special characters
such as $ OR { its a bit of a pain but you may want to consider &#xNNNN
where NNNN is standard hexadecimal representation of UTF-(8/16)
assuming you know the encoding..

Standard caveats apply (YMMV)
Martin-
----- Original Message ----- From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, October 21, 2005 1:32 AM
Subject: Re: html:link and jstl


Jadeler wrote:

http://localhost:8080/testapp/StartBuyPolicy.do?
x=${webProduct.id&y=${webProduct.productType}

The above link seems to be coming from this:

<html:link action="/StartBuyPolicy?x=${webProduct.id}&y=${webProduct.name}">
 Buy product
 </html:link>

What version of the Servlet Specification are you working with and which version of the Struts taglibs?

That you mention using <c:out> to print the values implies Servlet 2.3, and if so you should be using Struts-EL. Add struts-el.jar to your webapp, and change the taglib to:
  <%@ taglib uri="http://struts.apache.org/tags-html-el"; prefix="html" %>

(If you're on a Servlet 2.4 container... check your configuration, it should be evaluating the expressions anywhere in the page.)

--
Wendy Smoak


---------------------------------------------------------------------
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