<snip/>
                <!-- the link won't read "blah.do?arg=1 -->
>                 <html:link href="blah.do?arg=<%=var%>">
>                         Link
>                 </html:link>
>         </body>
> </html>

The href attribute must either *entirely* be a run time expression (<%=..%>) or 
*entirely* a literal. Hence the one below works

> 
> This works:
> 
> 
> <%
>     int var = 1;
>     String href = "blah.do?arg=" + var;
> %>
>     <html:link href="<%=href%>">
> 

You can alternatively write:

  href="<%="blah.do?arg="+var%>"

Or you can use the paramId etc properties of <html:link> to avoid all this mess!

Sri

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

Reply via email to