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
How can i assign an admin to Joomla installation
Outlook business Card
Transport-level error / (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
fruits without seeds
Iphone could not be restored. Error 14. Again...
C++ program
Regex to remove width property from HTML TAble tag where width is over 500
Is it possible to automatically copy data from AS/400 to Excel (or Lotus 1-2-3) without external apps?
Excel VBA Bloomberg function
Black marks over the text of some PDF docs in adobe reader (like hightlights).