• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Probelm in getting absolute path of the application folder?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

I have problem in getting the absolute path of the application folder.
I wriiten the following line in my action class:

String absPath = getServlet().getServletContext().getRealPath("/");

when i run this application 'DTH' in Tomcat server, I am getting correct path :
C:\Tomcat\jakarta-tomcat-5.0.25\webapps\DTH

But when i run this application in weblogic server, I am getting null value for the above line.

Can any one help me in this?
 
reply
    Bookmark Topic Watch Topic
  • New Topic