where .jsp files put in web project

4.4k Views Asked by At

I have an issue where to put view (.jsp) file in the web applications.little 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

1

There are 1 best solutions below

2
On

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.