2007/5/17, David Harland <[EMAIL PROTECTED]>:
I am doing the following validation. Middle newlines and newlines at the
end are preserved but newlines at the beginning are vanishing. I can see
the newline at the beginning being returned from the db and hibernate
but they disappear when displayed
body is required
1
512
body length must be between 1 and 512
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: 17 May 2007 11:22
To: Struts Users Mailing List
Subject: Re: newline being ignored
2007/5/17, David Harland <[EMAIL PROTECTED]>:
I have a jsp with a textarea whose name is body. The text contained in
body is newline then some text. The form is then posted to an action
that then writes it away to the database. If I then go back to view the
same page the newlline character has b
Petrelli [mailto:[EMAIL PROTECTED]
Sent: 17 May 2007 11:00
To: Struts Users Mailing List
Subject: Re: newline being ignored
2007/5/17, David Harland <[EMAIL PROTECTED]>:
> I have an object with String variable body. In the body is a newline
> character then some text. When this is bein
2007/5/17, David Harland <[EMAIL PROTECTED]>:
I have an object with String variable body. In the body is a newline
character then some text. When this is being posted the newline seems to
be being trimmed is there any way to stop this please?
Posted? Where?
And what are you using? Struts 1 or S
5 matches
Mail list logo