struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Any way to have multi-line text to be retrieved by s:text?
Date Sat, 28 Mar 2009 14:45:34 GMT
Hey Pawel,

Thanks for getting back to me. I guess I wasn't really clear about what I
was hoping to achieve.

Say I have a large chunk of text (consisting of multiple paragraphs) that I
want to display in an HTML file.
Of course, the length of it may differ for different crowds, as well as the
In the file, I'd be happy to see something like the
following (I believe this works with normal Java properties files):

My.Property=<p>My product is a great product. Ever since I started using
Struts it's only become better. \
	This is due to it's ease of use and performance. There is, of
course, one small problem.</p> \
	<p>I can't get properties stored in multi-line format in since s:text only reads \
	the first line of my text</p> \

That's pretty much what I'm looking for -storing multi-line text in the file itself (so as to make the file readable).
The formatting for HTML would be either in the text itself (as above), or
later be parsed somehow to add paragraphs, etc.

Yaron Golan

-----Original Message-----
From: PaweĊ‚ Wielgus [] 
Sent: Saturday, March 28, 2009 10:30 PM
To: Struts Users Mailing List
Subject: Re: Any way to have multi-line text to be retrieved by s:text?

Hi Yaron,
why not use standard < BR > for that?

best greetings,
Pawel Wielgus.

2009/3/28, <>:
> I'm interested in storing multi-line information that would later be
> retrieved into s:text (for instance, text to be displayed in the "about
> page in a site).
> Is it possible to do so?
> I've tried the common "\" in the properties file, but s:text only returns
> the first line in that case.
> Thanks
> Yaron

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message