perhaps indicates that it's because our mails are set to type html.
However it would be nice to find out if this is the reason!
Hth,
Brian
-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 15:09
To: 'Struts Users Mailing List'
Subject: AW: [
Yes, I use it in property-files.
-Ursprüngliche Nachricht-
Von: Brian McSweeney [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 18:08
An: 'Struts Users Mailing List'
Betreff: RE: [OT]formatting line breaks and tabs in emails?
Are the "\n" values
Are the "\n" values being pulled in from resource bundles?
-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 14:57
To: 'Struts Users Mailing List'
Subject: AW: [OT]formatting line breaks and tabs in emails?
I using \n as line br
I using \n as line breaks in mails and it functions.
-Ursprüngliche Nachricht-
Von: Mick Knutson [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 16:51
An: struts
Betreff: [OT]formatting line breaks and tabs in emails?
I am trying to format email messages that need to
I am trying to format email messages that need to contain line breaks, and tabs. But
when I add \n\r or \t, they just seems to be ignored.
Is there a way to do this?
---
Thanks
Mick Knutson
The world is a playground...Play Hard, Play Smart.
Visit http://www.YourSoS.com to learn how our
ssage is
displayed as a single long line, with each displayed on the page where
there should be a line break.
Viewing the HTML source, I see this where each is in my error message:
<br>
Can anyone help me to get my line breaks back, using html:messages with
bean:write instead of
ge is
displayed as a single long line, with each displayed on the page where
there should be a line break.
Viewing the HTML source, I see this where each is in my error message:
<br>
Can anyone help me to get my line breaks back, using html:messages with
bean:write instead of html:error
Sorry for the last post. Actually it was a GZip filter that was not
preserving the line breaks.
But your point still holds. And that may be the reason for the equality
comparison not working quite right.
I will try to take out all line-breaks before comaprison.
Affan
- Original Message
Well thats interesting coz I am experiencing it a bit differently. I have
line breaks in the DB but when they show values in the textarea the text
appears as one block. However if you enter line breaks in the textarea and
then Save the data it goes into the DB *with* the line breaks. But when it
I looked into this once and as far as I can remember browsers will happily
read files containing \r (Mac), \n (Unix) or \r\n (Windows) line breaks and
display them as separate lines in a text area. However, when they are
submitted back to the server they are always submitted as just \r. I'
My problem is that the data in my DB and the form-beans contain line breaks
but when I populate or with these values
the line-breaks go away and I see the text as one block.
BTW I am using redirect=true but I dont think that should make a difference.
Anyone with such experience/ideas? Thanks
is to rip out all \n \r before comparing equality, then do
your compare.
Just my rookie 2 cents...
Carl
-Original Message-
From: Affan Qureshi [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 12:08 AM
To: Struts Users Mailing List
Subject: Re: line breaks
No its coming from
]>
Sent: Monday, January 06, 2003 1:31 AM
Subject: Re: line breaks
> I use SQL server to populate TEXTAREAs from the DB and update the DB as
> well.
> I'm using the struts tag to accomplish this, and I'm not
> experiencing any problems.
> If I understand your
from Swing.
Its probably something along the way thats messing up your string.
- Original Message -
From: "Affan Qureshi" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Saturday, January 04, 2003 9:10 AM
Subject: line breaks
> I am using Stru
I am using Struts 1.1b2, Tomcat 4.1.12 LE, on Win2K.
I have a strange issue. I have a TEXTAREA type control that gets populated
from values in database. The value in the database has some line breaks. I
store that value in a variable called: "OLD_VALUE". Then I display the value
in th
15 matches
Mail list logo