What is the equivalent in JSP to FileSystemObject in ASP?
Created May 4, 2012
Prasad Thammineni The JSP specification does not support an equivalent of FileSystemObject. Since you use Java as the scripting language, you can use the File I/O classes in the java.io package to perform all file operations.
In order to be able to access files from the JSP independent of its deployed location you can use one or more the following functions:
In order to be able to access files from the JSP independent of its deployed location you can use one or more the following functions:
- ServletRequest.getResource()
- ServletRequest.getResourceAsStream()
- ServletRequest.getRealPath()