Image

Imagepromdi wrote in Imagejava_dev

writing to a text file using a servlet

Hi everyone, it's my first post here.

Just wanted to ask if it's possible to write to a text file using a deployed servlet. I'm kinda resorting to this since I don't know database yet. The purpose is to store user data & other information.

I tried using fileWriter.write. My code compiled, and my JSP worked but I didn't see any text file created on the webapps directory (I'm using Tomcat). Any idea on how I can retrieve the file?

Thanks!