In some highly secure project development, we often see JSP pages are placed under the Web-inf. This is due to security considerations,
is a for the security of the code. This is a bit cumbersome to implement, and page jumps are inconvenient. But the security of the whole project is up! The
in still It is recommended to use this practice in a number of high-security-demanding projects!
This is an example I wrote, I just put all the JSP pages under Web-inf, and then according to the module allocation, course folder is put and
JSP pages related to course information management. If we enter the HTTPS://LOCALHOST:8080/project name/page/admin/index.jsp is not to be visited
Ask, put the entire page folder under Webroot of course you can.
Then share the implementation of the code to implement the Web-inf page jump
If we click on the image below the Start button, jump to the main interface
Configure in the Struts.xml file
<action name= "Indexaction" > <result>/WEB-INF/page/admin/index.jsp</result> </ Action>
and add it in the link.
<a href= "indexaction.action" class= "Icon-home" > Start </a>
In the development of SSH project, the reason of putting JSP page in Web-inf is analyzed