Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get /webapps directory ?

807580Aug 26 2010 — edited Aug 28 2010
Hi folks,
I need to get from tomcat the /webapps directory.
Calling ServletContext.getRealPath("/") I am getting ..../webapp/myApplication.
How can I get just /webapps ?

thanks !
greetings
andrzej
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2010
Added on Aug 26 2010
12 comments
88 views