开发者

where .jsp files put in web project

开发者 https://www.devze.com 2023-04-10 17:02 出处:网络
I have an issue where to put view (.jsp) file in the web applications.littl开发者_Python百科e bit confuse it may be inside the WEB-INF folder or out side the WEB-INF folder.

I have an issue where to put view (.jsp) file in the web applications.littl开发者_Python百科e bit confuse it may be inside the WEB-INF folder or out side the WEB-INF folder.

Lot of spring projects view(.jsp) files are stored inside the WEB-INF folder by creating sub folders.

I saw lot of sample spring projects it includes .jsp files inside the WEB-INF folder. So What is the best practice for my question

Amila


If your application is servlet centric then you may add .jsp file under WEB-INF and request them via RequestDispatcher. If it is not then put .jsp outside the WEB-INF.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号