I guess these things depend on sentiments that are not obvious.  I
definitely like the <c: stuff better than the running code on the
page.

Jack


On Thu, 17 Mar 2005 18:03:16 -0700, Hyrum <[EMAIL PROTECTED]> wrote:
> So, if not using <c: blah blah is unsafe, even if Leon and Rick think it's
> ugly, and I don't want wicked users inserting script tags, am I stuck with
> the original <c:choose method??  Or did I miss another option stuck in there
> somewhere.  The choose method works, but is there a better way?  If you
> wanna talk about ugly, I think
> 
> <c:choose>
>         <c:when test="${bean.isIdiot}">Yes, I'm an Idiot</c:when>
>         <c:otherwise>No, I'm not an Idiot</c:otherwise>
> </c:choose>
> 
> Is WAY uglier than
> 
> ${bean.isIdiot ? "Yes, I'm an Idiot" : "No, I'm not an Idiot"}
> 
> even if the ugly way is safer.  But that's just personal preference.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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

Reply via email to