Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion Regarding where to put jsp in Web-application.

 
Siddharth Bhargava
Ranch Hand
Posts: 274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic