Configure Tomcat
Configure the web.xml
file.
To stop generating static content with one print statement per input line, you
must configure the
web.xml
file.
To configure the
web.xml
file:
- Navigate to
tomcat/conf
directory. - In the
web.xml
file, set the mapped file parameter toFalse
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>
.