Document root of a JSP page?

D

D. Alvarado

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
 
C

Chris Smith

D. Alvarado said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top