How to save generated file temporarily in servlet based web application

后端 未结 2 867
野的像风
野的像风 2020-11-22 03:38

I am trying to generate a XML file and save it in /WEB-INF/pages/.

Below is my code which uses a relative path:

File folder = new File(\         


        
2条回答
  •  再見小時候
    2020-11-22 04:29

    just use

    File relpath = new File(".\pages\");

    as application cursor in default stay into web-inf folder.

提交回复
热议问题