• Post Reply Bookmark Topic Watch Topic
  • New Topic

Probelm in getting absolute path of the application folder?  RSS feed

 
poli reddy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!