Hi
I am currently learning JSP and was wondering how you would implement a line break?
[code=java]
<% java.util.Date d1;
java.util.Date d2;
d1= new java.util.Date( );
d2 = new java.util.Date( );
out.println(d1) ;
out.println("\n ");
out.println(d2) ;
[/code]
I thought the line would do the trick but it didn't. The out put is:
Basically I wanted to have the two dates in two lines.
Anyone any idea? Thanks.
I am currently learning JSP and was wondering how you would implement a line break?
[code=java]
<% java.util.Date d1;
java.util.Date d2;
d1= new java.util.Date( );
d2 = new java.util.Date( );
out.println(d1) ;
out.println("\n ");
out.println(d2) ;
[/code]
I thought the line would do the trick but it didn't. The out put is:
This is the heading
This is the body
Fri Aug 14 23:04:55 PDT 2009 Fri Aug 14 23:04:55 PDT 2009
This is the body
Fri Aug 14 23:04:55 PDT 2009 Fri Aug 14 23:04:55 PDT 2009
Anyone any idea? Thanks.
Comment