Try:

<html:link page="/strutstest1/viewUser.do"  paramId="UserID"
paramName="BeanName" paramProperty="userID"><bean:write name="BeanName"
property="userID"/></html:link>

Where BeanName is a JavaBean and userID is a property of that bean that
contains the value of userID you want to pass on the URL.

Try to get out of the habit of using scriptlets in your pages, I'm just
starting with struts and trying to remove all code, and just use custom
tags.  It makes things simpler.

Tim.

-----Original Message-----
From: Ryan Norman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 10:46 PM
To: Struts User Mailing List
Subject: Passing JSP Variable Values to <html:link> tag - Ryan Norman


Hi,

I am Ryan Norman.

The JSP variable userID is never evaluated. It displays the URL as
<a href="/strutstest1/viewUser.do?UserID=<%= userID %>ADMINISTRATOR</a>

Does anybody know how to make this work.

<html:link page="/viewUser.do?UserID=<%= userID %>">
    <%= userID %>
</html:link>

Thanks

Ryan Norman




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

Reply via email to