Tags html into tags JSP

View: New views
3 Messages — Rating Filter:   Alert me  

Tags html into tags JSP

by peibel80 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a variable with tags html.

String oldDate = "Cod=23<br>Des=Area 22"

and I use this tag jsp:

<c:out value="${oldDate }"/>

but does not paint the line break, it paint <br>

What could I use to paint the line break??

Thanks,

Re: Tags html into tags JSP

by Liang ZHOU-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi:

you can try this attribute of c:out tag:
escapeXml="false"

good luck

2009/11/2 peibel80 <peibel@...>:

>
> Hi,
>
> I have a variable with tags html.
>
> String oldDate = "Cod=23<br>Des=Area 22"
>
> and I use this tag jsp:
>
> <c:out value="${oldDate }"/>
>
> but does not paint the line break, it paint <br>
>
> What could I use to paint the line break??
>
> Thanks,
>
> --
> View this message in context: http://old.nabble.com/Tags-html-into-tags-JSP-tp26156899p26156899.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>

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


Re: Tags html into tags JSP

by peibel80 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks Liang

It was this.

Liang ZHOU-2 wrote:
hi:

you can try this attribute of c:out tag:
escapeXml="false"

good luck

2009/11/2 peibel80 <peibel@hotmail.com>:
>
> Hi,
>
> I have a variable with tags html.
>
> String oldDate = "Cod=23<br>Des=Area 22"
>
> and I use this tag jsp:
>
> <c:out value="${oldDate }"/>
>
> but does not paint the line break, it paint <br>
>
> What could I use to paint the line break??
>
> Thanks,
>
> --
> View this message in context: http://old.nabble.com/Tags-html-into-tags-JSP-tp26156899p26156899.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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