I am passing a message using text area in html file.

In the message file, let say there are three lines.

when I pass it to jsp page. All three lines appear as a single line.

How can I separate this single line into original three lines please?

thanks in advance.

I found the solution...
it just needs to catch the carriage return and then replace it..

carriage return can be catch @ JSP page by following

somestringhere.indexOf("\r");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.