I am new to this group. Just need to know how to display output in the newline using servlets. As \n works fine in java, but it doesn't seem to be working in servlets. Is there any other escape sequence or way to do the same.
Your servlet output is most likely being interpreted as HTML by the browser. You need to either tell the browser that you are sending plain text (by setting the content type header appropriately) or generate HTML markup to display the text with the formatting you desire.