File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Confusion Regarding where to put jsp in Web-application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Confusion Regarding where to put jsp in Web-application. " Watch "Confusion Regarding where to put jsp in Web-application. " New topic

Confusion Regarding where to put jsp in Web-application.

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 268
I want to put all my *.jsp files in a folder called jsp under my Web Application. Where should this folder be put in the directory structure
1) under WEB-INF OR
2) Directly under my Web-Application


Where is the standard place where we put this(jsp) folder ...
Please do clear my concepts...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
If you put it underneath WEB-INF then the pages will not be directly accessible. That may or may not be what you intend to do; just something to keep in mind.
Anoop Somasundaran

Joined: Feb 28, 2008
Posts: 6
You can put your JSP files directly under your web-application directory. Its better to keep the files in different folders module wise(like common, profile...).
If you put your jsps under WEB-INF you may face some problems to access the pages as the resources under WEB_INF is not accessible to outside.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63547

"Anoop S", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Confusion Regarding where to put jsp in Web-application.
It's not a secret anymore!