Why using scriplet when you have struts ?
A better solution should be

<html:link page="/viewUser.do" paramId="UserID" paramName="userid">
link string
</html:link>

the "paramName" parameter is a bean which contains the value to pass to
request.
hope this helps
Ivan.


----- Original Message -----
From: "Mittar, Harpreet" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 2:15 PM
Subject: Re: Passing JSP Variable Values to <html:link> tag - Ryan Norman


> try putiing the expression tag within double quotes.
> "<%=userID%>"
>
> ----- Original Message -----
> From: "Ryan Norman" <[EMAIL PROTECTED]>
> To: "Struts User Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, March 28, 2002 05:45 PM
> 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]>


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

Reply via email to