How to properly put JSPs in the WEB-INF folder?

前端 未结 4 1006
一生所求
一生所求 2020-12-05 05:37

My question is how to put all the JSP files in WEB-INF/JSP/ in the proper manner?

Is there any configuration for this as the structure I\'m aware of is:

4条回答
  •  隐瞒了意图╮
    2020-12-05 06:27

    You can put your JSP in

    WEB-INF/jsp 
    

    folder and access that JSP using servlet.

    Create login.jsp and then access that JSP using preloginservlet.java. This servlet redirects to login.jsp which is in the WEB-INF/jsp folder.

提交回复
热议问题