I am currently learning JSP and was wondering how you would implement a line break?
Expand|Select|Wrap|Line Numbers
- <% 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);
This is the headingBasically I wanted to have the two dates in two lines.
This is the body
Fri Aug 14 23:04:55 PDT 2009 Fri Aug 14 23:04:55 PDT 2009
Anyone any idea? Thanks.