• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Hiding files under WEB-INF  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I've decided to move my JSPs and related files under the WEB-INF directory. I've done this and setup Dreamweaver to work right. When I deploy my site, the images don't show up.

I'm wondering, should only the JSP files be under there or can all web files be under there?

I was planning to just have a index.html that automatically forwards to the Welcome.do page in the root of the webapp. Then have all JSPs, graphics, .js files, etc. under the WEB-INF/web directory.

It appears that I can't have the graphics files under there?

It's very important to me that my users not be able to call a JSP directly, therefore, I was going to come extreme measures to limit their ability to do so - lots of checking in every JSP that wouldn't need to be done if under the WEB-INF. I tried once before and ran into a roadblock - likely the same one. Anyone able to help?

Thanks so much!
 
pie sneak
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only put JSPs under WEB-INF. gifs and such are requested separately by the browser, and the browser is not allowed to access WEB-INF.
 
We're all out of roofs. But we still have tiny ads:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!