tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Paries" <>
Subject Is there a way to get the Doc Root
Date Mon, 30 Jul 2001 18:05:35 GMT
RE: what is this number -2147483646Hello,

This may be more of a JSP or Servlet question, but I am sure someone in this
group would know the answer

I have an Web application /Myapp and I have a bunch of jsps in an admin
directory. I am going to distribute this
in a generic war file.

So to access my admin index I would do something like

The problem is I do not know what the end user is going to call the
application(Appname). So How do I get the Document root.

I can do a path = <%= request.getRequestURI()  %> and do some substring
<%= application.getRealPath("") %> doesn't give me what I need.  I was
hoping for an application.getPath("")

Thanks for any Suggestions..

  -----Original Message-----
  From: Raphael Lemaitre []
  Sent: Thursday, June 21, 2001 10:57 AM
  To: ''
  Subject: RE: what is this number -2147483646

  -2147483646 is Integer.MIN_VALUE
  With this value, this servlet is loaded first (the less load-on-startup
value is, earlier the servlet is loaded)

  Raphael Lemaitre

  > HI
  >   What is the meaning of the foll. code in web.xml file for startup
  > servlets.
  >  <load-on-startup>
  >             -2147483646
  >  </load-on-startup>
  > can any one know ..
  > Rgds
  > venkatesh

View raw message