tomcats default directory is where ever you called the startup.sh/bat file.
So if you dont use another script to call the startup.sh/bat file tomcats
default will be the bin directory.

Use this code to find the directory where WEB-INF is.  Then you can traverse
your directory structure from there. 

//get context path
    ServletConfig scon = null ;
    String workingDir = null;
    
    public void init(ServletConfig config) {
        scon = config ;
     }
 public void doPost(HttpServletRequest request, HttpServletResponse
response)
    throws ServletException, IOException {
      
        //get working dir
        ServletContext sc = scon.getServletContext();
        workingDir = sc.getRealPath("");


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to