Re: how to print to web page instead of catalina.out

2005-02-23 Thread Jin Wu
I tried out.print(). The complation failed. The error is: cannot resolve symbol symbol : variable out Thanks Jin Antony Paul [EMAIL PROTECTED] wrote: Why not use out.print() or you are trying to do something else ?. rgds Antony Paul On Tue, 22 Feb 2005 20:26:41 -0800 (PST), Jin Wu wrote:

Re: how to print to web page instead of catalina.out

2005-02-23 Thread Viorel Dragomir
If you can't find a response [HttpServletResponse] object to use than you can't print. Use throw Exception(MESSAGE) ;) Viorel Dragomir . .. --- - Original Message - From: Jin Wu To: Tomcat Users List ; Antony Paul

Re: how to print to web page instead of catalina.out

2005-02-23 Thread Eric J. Pastoor
if youre trying to print to a webpage, then you probably want a jsp file or a servlet in which case this would be one of the reasons you are using tomcat. If you are just trying to log messages though, i recommend checking out log4j instead of using system.out and system.error - Original

RE: how to print to web page instead of catalina.out

2005-02-23 Thread Daxin Zuo
response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(to web); -Original Message- From: Jin Wu [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 10:39 AM To: Tomcat Users List; Antony Paul Subject: Re: how to print to web page instead of

RE: how to print to web page instead of catalina.out

2005-02-23 Thread Jin Wu
Yes, this works. Thanks a lot. James Daxin Zuo [EMAIL PROTECTED] wrote: response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(to web); -Original Message- From: Jin Wu [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 10:39 AM To: Tomcat

Re: how to print to web page instead of catalina.out

2005-02-22 Thread Antony Paul
Why not use out.print() or you are trying to do something else ?. rgds Antony Paul On Tue, 22 Feb 2005 20:26:41 -0800 (PST), Jin Wu [EMAIL PROTECTED] wrote: Hi, It seems that System.out.printlin(...) prints to catalina.out. Is there a way I can print to web page? Thanks, James