struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@gmail.com>
Subject Re: [OT] Re: ajax proj
Date Mon, 02 May 2005 22:33:35 GMT
On 5/2/05, Jason Lea <jason@kumachan.net.nz> wrote:
> Just a quick note/question about Craig's code below:
> 
> This line
> 
>     <label>${category.label}</label>
> 
>  will output the value with not xml filtering, so some values will cause
> incorrect xml to be generated.
> 
> You should use <c:out> tag to filter the <,>,',", and & characters to
> output &lt;, &gt;, &apos;, &quot;, and &amp;
> 
>     <label><c:out value="${category.label}"/></label>
> 
> and the same for the <value> element
> 

Yep ... +1 on that suggestion.

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message