2

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

Amila
  • 243
  • 1
  • 10
  • 24

1 Answers1

2

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.

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186