Java web operates on the files in the webcontent directory

Java web generates files dynamically if it is in the webcontent directory through sevlet.
for example,
1) need to dynamically create a.txt under webontent
2) write to the a.txt file.
3) read the a.txt file.

Mar.11,2021

servlet, is a program that runs on the server side, so you can access disk files without restrictions, and there is no sandbox like browsers, although you can use java files to manipulate api

.
Menu