Bear Bibeault wrote:Ignoring the fact that you shouldn't be putting Java code in a JSP page...
"hello.txt" is a relative file path which makes no sense in the context of a web app.
Where in the file hierarchy do you want it to go? For example, "/hello.txt" will place it at the root of the web app context.
Thanks Bear.
Doesn't work too (tested some hours ago).
It's possible i've not a permission to write files in the root of my webapp?
When i tested this function on my locale pc (windows - tomcat 6.0), all works fine.