Forums Register Login
Print Multiple Lines with out.write
Dear Ranchers,

i need to print multiple lines with carriage returns,how can i do that,is it possible with out.write or by any other method,here is what i need to do,its something like this,any ideas??

The out object has a "println" method.

But why would you ever want to do this?
Why not just jump out of your scriptlet and just write literal output straight to the page as if it were a static HTML file. You wouldn't have to worry about escaping anything and your JSPs would be much cleaner looking and easier to maintain.

Isn't that the whole point of templating engines?

This thread has been viewed 955 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 23, 2018 08:57:27.