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
average overhead on a PIX site to site IPSec tunnel
transfering a directory with multiple files in parallel
How do I access a combo box in a WPF datagridtemplatecolumn using codebehind c#
Inserting data into a varbinary(max) field
Word 2003 - working with tables, rows, and cells
Using VLookup for Data Validation
Do WPF and MVP go together?
web design vs dev
How deploy a website shortcut to 200 users desktop
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server