On 1/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Rahul Akolkar wrote the following on 1/19/2006 3:30 PM:
>
> > For such concerns ...
> >
> > ${fn:escapeXml(test)}
> >
> > is an option.
> >
> > <c:out/> is overrated in JSP >= 2.0, IMO.
>
> Just curious why is ${fn:escapeXml(test)} any better than <c:out
> value='${test}'/> ?
>
<snip/>
Lets lay out all the options:
1) ${test}
2) ${fn:escapeXml(test)}
3) <c:out value="${test}" />
4) <c:out value="${test}" escapeXml="false" />
And the scenarios:
a) "test" must be escaped
b) "test" cannot contain characters that need to be escaped
c) "test" must not be escaped
Then, keeping aside jspx/tagx files:
i) For (b) and (c), (1) wins, the criteria being:
* Verbosity
* Need for JSP tag invocation.
ii) For (a), (2) wins because I'm already doing (i).
Ofcourse, to each their own.
-Rahul
> --
> Rick
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]