Configuration for Tomcat

To stop generating static content with one print statement per input line, you need to configure the web.xml file.
To configure web.xml file, perform the following steps:
  1. Navigate to tomcat/conf folder.
  2. Edit web.xml file as explained below:
    Set the mapped file parameter to False in the servlet tag mentioned with:
    <servlet-name>jsp</servlet-name>.
    <init-param>
    <param-name>mappedfile</param-name>
    <param-value>false</param-value>
    </init-param>