That's not a bug, it's a feature!
Try this instead:
<% if (session.getAttribute("something").equals("tis")) { %>
<logic:equal name='dull'>
<% } %>
The argument to out.write is a String literal, and doesn't get translated. The above
isn't a String literal, it's a tag, and will get parsed as you want.
-= J
> -----Original Message-----
> From: Yansheng Lin [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 11:01 AM
> To: 'Struts Users Mailing List'
> Subject: [SYNTAX] embedding struts tag in out.write problem
>
>
> Hi, I am having trouble displaying a struts tag inside of out.write().
>
> <code>
> <% if (session.getAttribute("something").equals("tis")) {
> out.write("<logic:equal name='dull'> ");
> } %>
>
> Output is un-evaluated <logic:equal> statement. Anyone knows
> where the problem
> is?
>
> Thanks!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]