How about writing one Java class before posting to the list?  I mean
"Permission denied."   Are you reading any of the messages yourself?

Lance Prais wrote:

I am using a servlet to upload mail from a web page and it writes out a .out
file and I am getting the following error:

[28/Oct/2002:17:19:25] failure (24365): Internal error: exception thrown
from the servlet service function (uri=/attachments/test_post.jsp):
javax.servlet.ServletException: Demo.out (Permission denied), stack:
javax.servlet.ServletException: Demo.out (Permission denied)
<p>
The portion of the code that directs the servlet to write the .out file is a
follows:

public class FileUploadBean {
public void doUpload(HttpServletRequest request) throws
IOException {
PrintWriter pw = new PrintWriter(
new BufferedWriter(new
FileWriter("/data/verity/custom-kb/wwwroot/attachments/Demo.out")));
ServletInputStream in = request.getInputStream();

int i = in.read();
while (i != -1) {
pw.print((char) i);
i = in.read();
}
pw.close();
}
}

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to