• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Where should i store .jsp pages

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have very simple question. could someone please help me or provide me some direction so that i can better understand the concept?
Q.
where should i keep all the web component (like jsp page, htmlpage, etc..)? what is the best practice in real world?
should i put them under the root directory of my web application? or should i create a directory under root directory? or should i put then under the "web-inf" directory?
I have an idea that if we put our jsp pages under "web-inf" directory then they are secured, no one can directly access them.
But i don't know how and is it a good idea to put jsp pages in "web-inf" directory?

please do help me!

Thanks
Vivek
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Vivek Saxena:
Q.
where should i keep all the web component (like jsp page, htmlpage, etc..)? what is the best practice in real world?
should i put them under the root directory of my web application? or should i create a directory under root directory? or should i put then under the "web-inf" directory?
I have an idea that if we put our jsp pages under "web-inf" directory then they are secured, no one can directly access them.
But i don't know how and is it a good idea to put jsp pages in "web-inf" directory?


You've got it -- Don't put your JSP/HTML/Images or other content you want served up in your web application in the WEB-INF directory -- like you said, they will be secured and will not be accessible.
The standard structure for a Web App is this:
Things with a * are required locations... things without are more suggested best practices....

[ May 09, 2002: Message edited by: Jessica Sant ]
 
it's a teeny, tiny, wafer thin ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic