This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Application classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Application classpath" Watch "Application classpath" New topic
Author

Application classpath

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5139
    
  12

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.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
I think you need the getRealPath method in ServletContext.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application classpath
 
Similar Threads
Servlet not running
jsp:include page="header.html" causes IllegalStateException
beer app not running
Calling a web service in a java servlet,.. servlet not finding jar files from axis
about myodbc