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
compacting backend database
How do I resolve these exchange connectivity test errors?
using Task.IsCompleted
Connect to exchange using FVS318 VPN Firewall
ASP.Net -- add a ScriptManager and get "Failed to load source for:
http://localhost:63366/pub
recover missing emails - information store service stopped
Remove Old AD Computer Account via Command Line
Cannot Erase Tape - ARCServe
simple query help req'd in oracle
ASA 5505 DMZ won't Access Internet