File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes file is not loading in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "file is not loading in servlet" Watch "file is not loading in servlet" New topic
Author

file is not loading in servlet

krishna bala
Ranch Hand

Joined: Jul 20, 2009
Posts: 56
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You can't load something as a resource that isn't on the classpath. You'll have to use getRealPath().
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Please only put code in code tags.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file is not loading in servlet
 
Similar Threads
is this legal
Strange exception with StrutsTestCase for JUnit
.class how does it work
K&B: Has-a relationship
Collection to read data from a file and store it in memory???