What is the equivalent in JSP to FileSystemObject in ASP?

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:

  • ServletRequest.getResource()
  • ServletRequest.getResourceAsStream()
  • ServletRequest.getRealPath()
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact