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
Setting up a VPN IPsec Tunnel
Where can I download System.Web.Extensions 2.0 version?
Java Client Applet - AccessControlException
Outlook 2007 delete cross out message instead of deleting
Are multiple PHP session paths possible?
Remote Desktop not working via IP address
The user profile service failed the logon.
Backup Exec 12 - can't install any updates - gives error 1324 "The path Program Files contains an invalid character"
asp.net I have a sqldatasource select witha a where that searches between dates
How to connect to network printer linux