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
mysql stored proc parameter
OMA and OWA
"Invalid Argument provided." Error when Generating PDFs in VB.NET Application via Crystal Reports Viewer
Will an AGP Video Card work in a PCI Express Slot?
How to view .stp or .wsp files in Microsoft Office sharepoint designer mode
Bind List<List<string>> to Grid
lastb: /var/log/btmp: File too large
Require 2 CPUs on an Intel Server SC5520HC Motherboard?
laptop display problems
Extract icon from EXE/DLL