Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exam objective 2.1

 
Lakshmi Saradha
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The objective says .."Construct the file and dir structure of a web application containing static content , jsp etc.......and describe how to protect resouce files from HTTP access".
Can anybody throw light on the last line?(describe how to protect resouce files from HTTP access).
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lakshmi Saradha:
Hi,
The objective says .."Construct the file and dir structure of a web application containing static content , jsp etc.......and describe how to protect resouce files from HTTP access".
Can anybody throw light on the last line?(describe how to protect resouce files from HTTP access).

To my understanding, it means that you have to put someting under the /WEB-INF/ folder so that clients cannot gain direct access to there resources, basically jsp files if/when necessary. Correct me if i am wrong....
 
Vijay S. Rathore
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Absolutely right. It means you should be clear about so called 'document-root' and 'context-root' or 'app-root'
 
Vipin Mohan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the above point the only one regarding this objective ? Or is there anything more we need to know about protecting resource files from HTTP access ?

Thanks
Vipin
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!