This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
"dani dani", please check your private messages for an important administrative matter.
Joined: Feb 16, 2009
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.
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.