Also why don't you try something like this

<logic:equal name="something" value="tis" scope="session">
  <bean:write name="dull"/> -- Or whatever other tag you want!
</logic:equal>

-----Original Message-----
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 11:05 AM
To: Struts Users Mailing List
Subject: RE: [SYNTAX] embedding struts tag in out.write problem


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]


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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

Reply via email to