Document root of a JSP page?

Discussion in 'Java' started by D. Alvarado, Jun 30, 2004.

  1. D. Alvarado

    D. Alvarado Guest

    Hello,
    What is the most efficient way to get my public HTML document root
    path? That is, I know the base directory for serving web pages is

    /usr/local/public/html

    but I wish to determine this information in my JSP page and store it
    to a variable. I'm using Weblogic 5.1 on Solaris 8 with Apache 1.3.27
    web server.

    Thanks in advance, - Dave
     
    D. Alvarado, Jun 30, 2004
    #1
    1. Advertising

  2. D. Alvarado

    Chris Smith Guest

    D. Alvarado wrote:
    > What is the most efficient way to get my public HTML document root
    > path? That is, I know the base directory for serving web pages is
    >
    > /usr/local/public/html
    >
    > but I wish to determine this information in my JSP page and store it
    > to a variable. I'm using Weblogic 5.1 on Solaris 8 with Apache 1.3.27
    > web server.


    Look into ServletContext.getRealPath.

    --
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
     
    Chris Smith, Jun 30, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,245
  2. Steve Carrow
    Replies:
    0
    Views:
    556
    Steve Carrow
    Jul 28, 2003
  3. Rick Osborn
    Replies:
    10
    Views:
    3,966
    Jon A. Cruz
    Feb 8, 2004
  4. Steve Carrow
    Replies:
    0
    Views:
    624
    Steve Carrow
    Jul 28, 2003
  5. hector
    Replies:
    5
    Views:
    415
    CBFalconer
    Dec 5, 2006
Loading...

Share This Page