1

With reference to that question: PUT vs POST in REST I was trying to generate a dynamic HTML page using a servlet's put method. I was able to generated the file (let's call it new_resource.html) using the classic FileOutputStream and place it in tomcat's deployment folder. new_resource.html becomes immediately reachable through HTTP which indicated that all is good. Problem is that once eclipse is closed and reopened the file disappears possibly because eclipse is performing project cleaning which I believe would remove any "foreign" resource. What am I doing wrong and how can I persist this new resource and protect it from being deleted? Is this the right way to generate new resources? Please advice.

Thanks

Community
  • 1
  • 1
Alexander
  • 335
  • 1
  • 4
  • 12
  • 1
    eclipse usually does not clear the app except if you tell it to do so. Or in every new deployment. – Leo Sep 30 '14 at 19:55

0 Answers0