Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > linebreaks in scriptlets

Reply
Thread Tools

linebreaks in scriptlets

 
 
Rune RunnestÝ
Guest
Posts: n/a
 
      04-26-2005
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


 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      04-26-2005
"Rune RunnestÝ" <(E-Mail Removed)> wrote in message
news:rKpbe.8155$(E-Mail Removed)...
> 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".


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a way to call tags from within JSP scriptlets oldJet@gmail.com Java 2 04-09-2009 12:27 AM
how to avoid using scriptlets in jsp pages anisha Java 0 11-10-2008 12:06 PM
Remove scriptlets from JSP stephenfu1@gmail.com Java 6 11-15-2005 02:22 AM
Passing parameters from a tiles-tag attribute to JSP java scriptlets. Ken Loh Java 0 12-22-2004 08:59 AM
Re: Call bean functions without scriptlets from JSP? VisionSet Java 0 08-16-2003 10:00 AM



Advertisments