I was trying to see if I could write to a file in the /WEB-INF directory but I 
couldn't get it to work - is there a problem with a servlet writing to this directory 
or is it just me (again ;( ) ?

thanks
/j-p.

URL url = context.getResource("/contextTest.txt");
URLConnection con = url.openConnection();
con.setDoOutput(true);
OutputStream out = con.getOutputStream();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(out));
pw.println("foo");
pw.close();
out.close();



-----------------------
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to