You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by cmoreno <cr...@gmail.com> on 2009/06/17 19:01:46 UTC
STRUT2
Hi
I have a problem with <s:property> tag. How can I use into this tag 's value
special characters like \r\n.
I tried with escape attribute, but it isn't work. I tried to change \r\n
with <br> tag, but isn't work. If I look up into the source code the value
is ok (with line return)
How can I resolve this?
Thank you
--
View this message in context: http://www.nabble.com/STRUT2-%3Cs%3Aproperty%3E-tp24077856p24077856.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
Re: STRUT2
Posted by Dave Newton <ne...@yahoo.com>.
cmoreno wrote:
> I have a problem with <s:property> tag. How can I use into this tag 's value
> special characters like \r\n.
> I tried with escape attribute, but it isn't work. I tried to change \r\n
> with <br> tag, but isn't work. If I look up into the source code the value
> is ok (with line return)
>
> How can I resolve this?
Whitespace gets invisibled by the browser. You need to use <br/> tags
and make sure the output isn't escaped in order to get linebreaks in the
browser.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: STRUT2
Posted by Girish Naik <gi...@gmail.com>.
Can a <pre> tag be useful?? <pre><s:property/></pre>
Regards,
---------------------------------------------------------
Girish Naik
Mobile:-+91-09740091638
girish.naik@gmail.com
Samuel Goldwyn<http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
- "I'm willing to admit that I may not always be right, but I am never
wrong."
On Wed, Jun 17, 2009 at 10:40 PM, Jon Pearson <Jo...@sixnet.com>wrote:
> Perhaps what you want is a <br />?
>
> > -----Original Message-----
> > From: cmoreno [mailto:cristina.moreno.b@gmail.com]
> > Sent: Wednesday, June 17, 2009 1:02 PM
> > To: user@struts.apache.org
> > Subject: STRUT2 <s:property>
> >
> >
> > Hi
> > I have a problem with <s:property> tag. How can I use into
> > this tag 's value
> > special characters like \r\n.
> > I tried with escape attribute, but it isn't work. I tried to
> > change \r\n
> > with <br> tag, but isn't work. If I look up into the source
> > code the value
> > is ok (with line return)
> >
> > How can I resolve this?
> >
> > Thank you
> > --
> > View this message in context:
> > http://www.nabble.com/STRUT2-%3Cs%3Aproperty%3E-tp24077856p240
> > 77856.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
>
>
RE: STRUT2
Posted by Jon Pearson <Jo...@sixnet.com>.
Perhaps what you want is a <br />?
> -----Original Message-----
> From: cmoreno [mailto:cristina.moreno.b@gmail.com]
> Sent: Wednesday, June 17, 2009 1:02 PM
> To: user@struts.apache.org
> Subject: STRUT2 <s:property>
>
>
> Hi
> I have a problem with <s:property> tag. How can I use into
> this tag 's value
> special characters like \r\n.
> I tried with escape attribute, but it isn't work. I tried to
> change \r\n
> with <br> tag, but isn't work. If I look up into the source
> code the value
> is ok (with line return)
>
> How can I resolve this?
>
> Thank you
> --
> View this message in context:
> http://www.nabble.com/STRUT2-%3Cs%3Aproperty%3E-tp24077856p240
> 77856.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