*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

Confusion Regarding where to put jsp in Web-application.

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 257
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

My-Application
-->WEB-INF/src/java
-->WEB-INF
-->lib
-->classes
web.xml
index.jsp
build.xml

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

Joined: Mar 22, 2005
Posts: 41052
    
  43
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.


Ping & DNS - my free Android networking tools app
Anoop Somasundaran
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

"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.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Confusion Regarding where to put jsp in Web-application.
 
Similar Threads
Jsp under WEB-INF
In a WebProject, where is the best place for jsp's?
Include Jsp in Jsp
urgent
New to WebLogic...