linebreaks in scriptlets

R

Rune Runnestø

This code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>
<body>
<%
out.println("Transfer this money to my account");
out.println("\nDone");
%>
</body>
</html>

make this output:
Transfer this money to my account. Done.

I want the output to be:
Transfer this money to my account.
Done.

How do I obtain a linebreak in the scriptlet ?

Regards
Rune
 
M

McKirahan

Rune Runnestø said:
This code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>
<body>
<%
out.println("Transfer this money to my account");
out.println("\nDone");
%>
</body>
</html>

make this output:
Transfer this money to my account. Done.

I want the output to be:
Transfer this money to my account.
Done.

How do I obtain a linebreak in the scriptlet ?

Regards
Rune

Use "<br>" instead of "\n".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top