I have a web form page (jsp) ,where user gives some variables. I have a java class which has the same names.So with jsp bean i pass the user's input into 2 variables. So i have var_1=greek,var_2=turkey.
I want now to pass these variables to a properties.txt file with a servlet.The problem is that it gives me this error:
/properties.txt (Permission denied)
to make the servlet i followed this example:WriteToFileServlet
How i can write to a file, my variables??