<% String b="a\na"; %>
<%=b%>
When the above code is printed, it is displayed as'a a'.
How do you represent line breaks?
<% String b="a\na"; %>
<%=b%>
When the above code is printed, it is displayed as'a a'.
How do you represent line breaks?
To enter a linebreak in JSP you need to use <br/> instead of \n for it to show in the browser.