Microsoft
Software
Hardware
Network
Question : Tomcat Webapps Read File
I have a web application using JSP that usea a JavaBean using Tomcat server. The JavaBean must be able to read a file located in the webapps directory as readonly. When using new File( filename), it doesn't located the file immediately in the webapps directory.
How do I specifiy the filename so that new File will find the file in the webapps directory? Since the Javabean isn't a JSP/servlet, it's harder to do that.
Answer : Tomcat Webapps Read File
>String filePath = context.getRealPath("/File
.txt);
error
String filePath = context.getRealPath("/File
.txt");
Random Solutions
using window.open want to get rid of url bar in new window within IE7
Schema Changes by User
Inserting image in Word 2007 table
SBS 2008 shared folder permissions problem - read only - need full control
Installing MAPI CDO on Exchange 2007
Calendar Control in Excel 2003 VBA
Unix filler
To to retrieve Conference call recordings
tables with FK relationships at all
Windows XP OEM in a virtual machine