Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2005

Tip: Looking for answers? Try searching our database.

File from Servlet

Thread view: 
alan@engrm.com - 08 Aug 2005 08:49 GMT
   What is the correct way to get the root directory of a web application
   from within a servlet?

--
Alan Gutierrez - alan@engrm.com
   - http://engrm.com/blogometer/index.html
   - http://engrm.com/blogometer/rss.2.0.xml
Andrew Thompson - 08 Aug 2005 09:01 GMT
>     What is the correct way to get the root directory

ServletContext.getRealPath("/")

> ..of a web application

ditto("path to web app")

>     from within a servlet?

HTH

Signature

Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
Fun For The Whole Family (Except Grandma and Grandpa)

alan@ljubljana.agtrz.com - 13 Aug 2005 04:57 GMT
>>     What is the correct way to get the root directory
>
[quoted text clipped - 7 lines]
>
> HTH

   Yes. It it was exactly what I was looking for. Thank you.

--
Alan Gutierrez - alan@engrm.com
   - http://engrm.com/blogometer/index.html
   - http://engrm.com/blogometer/rss.2.0.xml


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.