Re: append text into a file
Hello Could please give me some advice about how to append some data into an existed log file? Thanks. The GenericServlet.log method (which HttpServlets inherit) appends to the log file - within a servlet, just call 'log'. In a JSP you can do the same thing using the ServletContext.log method. The ServletContext is referenced through the 'application' object that is given to you by the container - hence, just call 'application.log' within a JSP scriptlet. Regards Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: append text into a file
FileWriter(File file, boolean append) FileWriter(String fileName, boolean append) -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 11:43 AM To: Tomcat Users List Subject: append text into a file Hello All, Could please give me some advice about how to append some data into an existed log file? Thanks. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]