This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Question of hiding resource from client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Question of hiding resource from client" Watch "Question of hiding resource from client" New topic
Author

Question of hiding resource from client

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
I have found that there's a way to hide resource from a client - place the jsp pages in the directory WEB-INF. Therefore, the jsp pages cannot be viewed by typing the path http://localhost/*.jsp
The page can be accessed by the use of RequestDispatcher from a servlet program or using custom URL set in web.xml. However, it is required to use <jsp:include page="xxx.jsp" /> to include another jsp. However, the jsp is placed in the WEB-INF also, so ServletException is thrown. How can I include the jsp file successfully in this way? i have tried to use absolute path, however, it is still unsuccessful. What should I do? Thanks!
Leyland
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question of hiding resource from client
 
Similar Threads
Question of hiding resource from client
Can't locate .js (or .css) files from a .jsp page.
How can I disable the call to jsp file?
How to set up a relative path
Internal Servlet Error ?