directory « Request « JSP-Servlet Q&A





1. How to get the path of the context directory in jsp and how can i overwrite it for every new request    stackoverflow.com

Hi i am getting path of the context directory in my local system using..

String myfile = application.getRealPath("/");
but the method getRealPath("/") is returning null when application is deployed in war file in ...

2. Possible to set base directory for a J2EE webapp on a request-by-request basis?    stackoverflow.com

We've got a Java/J2EE web application where different users should see different pages. We have the user log in, stick the userId in the sesssion, and let them use the webapp. What ...

3. CMS - Approach to handle requests using directory names    coderanch.com

Hello, In a content management system pages are often requested by using URL directory names (path) instead of using an unique parameter id, when getting content stored in a database, i.e: Solution 1: URL request using directory name: www.myDomain.com/about/ www.myDomain.com/about/thisDepartment/ Solution 2: URL request using unique parameter id: www.myDomain.com?page.jsp?pid=233 I am looking for an approach on how to use the directory ...