• Post Reply Bookmark Topic Watch Topic
  • New Topic

content of WEB-INF directory ?

 
Raj Paul
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It has been said in many books that the content of WEB-INF directory are not served to clients. what does it mean ? Can't i put a jsp file inside web-inf directory & access it ???
Thanks & Regards
Raj Paul
 
John Williamer
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically anything inside the web-inf cant be acessed directly, so no you cant put a jsp inside. Although you can get a file from it indirectly ie through getResourceAsStream from the ServletContext
 
Raj Paul
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I kept a .jsp file in WEB-INF directory, and accesses through RequestDispatcher .. is it right ?
Thanks & Regards
Raj Paul
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!