Article From:

My project has been decided to deploy to Tomcat.
But I open the JSP file on the server and open it anywhere, 404 xxx. JSP – & gt; run as – & gt; run on server

Answer 0:

WEB-INFDirectory can not be directly accessed to the client.<welcome-file>/WEB-INF/index.jsp</welcome-file>Change into
<welcome-file>/index.jsp</welcome-file>That’s all right, and it needs to be done.index.jspThe page is placed in the WebRoot directory.

Answer 1:

Under the webcontent directory of resource file, WEB-INF directory browser can not access.

Link of this Article: JSP page opens 404

Leave a Reply

Your email address will not be published. Required fields are marked *