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.
Hi, I am trying to change permissions on a file from a jsp page here's my code..... Runtime rt = Runtime.getRuntime(); rt.exec("chmod 444 " + absDIR + year + mon + pdfName); I get know errors with this code but it does not work. I can't seem to figure it out thanks Tex
exec creates a process - to see any errors generated by that process, you would have to look at the error stream or output stream from that process. I suggest you experiment with the code in a "bean" that you can test outside the JSP environment - it will be much easier to see what is going on. Bill