Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

storing line breaks 1

Status
Not open for further replies.

softjack

Programmer
Dec 4, 2005
44
IN
hi
i'm designing a small forum type web app.
Using JSP and Oracle.

I created a TEXTAREA where a user could write his messages.
i'm able to store these messages in my oracle database.

Now, when i try to read the message again from database and display it on my browser, i could not see the line breaks or any other html tags...it all comes in a single line.

How can i store line breaks (<BR>)in my database.

Please help!

thanx

Softjack
 
Hi

Do you mean that you :
[ul]
[li]receive the text with end-of-line marks[/li]
[li]insert <br> tag before each end-of-line mark[/li]
[li]save the txt into the database[/li]
[li]retrieve the text from the database[/li]
[li]discover that <br> tags are not in the text anymore[/li]
[/ul]

Feherke.
 
i want to know how to replace the end of line marks with <BR> tag.

actually don't know how to read end of line marks

Can u help me on this


thanx

softjack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top