Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

String not coming with CRLF from bean to jsp

Posted on 2003-03-17
3
Medium Priority
?
202 Views
Last Modified: 2010-03-31
i call a bean mb from jsp page
the method is as following...
String run(Stiring df)
{

return dfdsf;
}
it returns a multiline String
while testing in the bean class itself the String has all the newline characters, so
the lines come separarately
but when jsp page calls it, the output comes in a single line
can somebody help with this plz?
0
Comment
Question by:ashutoshleo
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 8154803
I assume you're rendering this multiline String in a web browser. Browsers have no obligation to render line breaks and usually don't. Enclose the String in <pre>yourString</pre>
0
 

Author Comment

by:ashutoshleo
ID: 8154922
Thank you very much!!
You guessed it exactly. That was ther problem.
Now it is coming exactly as the bean method gives the output.
Thanks
0
 

Author Comment

by:ashutoshleo
ID: 8154923
Thank you very much!!
You guessed it exactly. That was ther problem.
Now it is coming exactly as the bean method gives the output.
Thanks
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question