struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <>
Subject Re: html:link appears not to respect scriptlets inside atribute values
Date Tue, 02 Dec 2003 01:30:56 GMT
Per the JSP spec about request-time attribute values:

The expression must appear by itself (multiple expressions, and mixing 
of expressions and string constants are not permitted).

Which means you have to use:

<html:link page='<%= "nasty" + "expression" + "here" %>'>Edit</html:link>

Gus Heck wrote:
> The following doesn't seem to be working as I would expect... I sort of 
> suspect that this may not be a struts issue, but I really thought you 
> were supposed to be able to drop in jsp expressions anywhere.
> <html:link page="/prototypes/<%= 
> %>">Edit</html:link>
> is giving me this html output:
> <a href="/friendDB/prototypes/<%= 
> %>">Edit</a>
> should fail as cannot exist, but it is getting 
> reproduced textually instead. I have this really bad feeling I am 
> forgetting something, or have missed something basic, but cant figure 
> out what searches would bring up the answer.
> -Gus

Kris Schneider <>
D.O.Tech       <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message