Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application classpath

 
Roel De Nijs
Sheriff
Posts: 10220
129
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to place an xml-file under my application classpath. But where can i find this class path ? And i think it's the %tomcat_home%/webapps/MyWebApp/WEB-INF/classes or tomcat_home%/webapps/MyWebApp/WEB-INF/lib directory. But just to make sure (because it's not working): is this correct ?

Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need the getRealPath method in ServletContext.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic