0

Assume I want to write to a new file created within the space of my webapp.

One way would be use getServletContext().getRealPath("/") and use that String to create a new file on the server. However, often I come across advice like not using getServletContext().getRealPath("/").

Can someone please let me know of another way to write a new file within my webapp?

Many thanks.

4

1 に答える 1