You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jin Wu <jw...@yahoo.com> on 2005/02/23 05:26:41 UTC
how to print to web page instead of catalina.out
Hi,
It seems that System.out.printlin("...") prints to catalina.out. Is there a way I can print to web page?
Thanks,
James
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: how to print to web page instead of catalina.out
Posted by "Eric J. Pastoor" <ep...@vt.edu>.
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 Message -----
From: "Jin Wu" <jw...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>; "Antony Paul"
<an...@gmail.com>
Sent: Wednesday, February 23, 2005 1:38 PM
Subject: Re: how to print to web page instead of catalina.out
>I tried out.print(). The complation failed. The error is:
>
> cannot resolve symbol
> symbol : variable out
>
> Thanks
> Jin
>
> Antony Paul <an...@gmail.com> 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:
>> Hi,
>>
>> It seems that System.out.printlin("...") prints to catalina.out. Is there
>> a way I can print to web page?
>>
>> Thanks,
>> James
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: how to print to web page instead of catalina.out
Posted by Viorel Dragomir <vd...@wylog.com>.
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
Sent: Wednesday, February 23, 2005 20:38
Subject: Re: how to print to web page instead of catalina.out
I tried out.print(). The complation failed. The error is:
cannot resolve symbol
symbol : variable out
Thanks
Jin
Antony Paul <an...@gmail.com> 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:
> Hi,
>
> It seems that System.out.printlin("...") prints to catalina.out. Is there a way I can print to web page?
>
> Thanks,
> James
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
RE: how to print to web page instead of catalina.out
Posted by Jin Wu <jw...@yahoo.com>.
Yes, this works. Thanks a lot.
James
Daxin Zuo <dz...@techexcel.com> wrote:
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("to web");
-----Original Message-----
From: Jin Wu [mailto:jwu_9@yahoo.com]
Sent: Wednesday, February 23, 2005 10:39 AM
To: Tomcat Users List; Antony Paul
Subject: Re: how to print to web page instead of catalina.out
I tried out.print(). The complation failed. The error is:
cannot resolve symbol
symbol : variable out
Thanks
Jin
Antony Paul 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:
> Hi,
>
> It seems that System.out.printlin("...") prints to catalina.out. Is there
a way I can print to web page?
>
> Thanks,
> James
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
RE: how to print to web page instead of catalina.out
Posted by Daxin Zuo <dz...@techexcel.com>.
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("to web");
-----Original Message-----
From: Jin Wu [mailto:jwu_9@yahoo.com]
Sent: Wednesday, February 23, 2005 10:39 AM
To: Tomcat Users List; Antony Paul
Subject: Re: how to print to web page instead of catalina.out
I tried out.print(). The complation failed. The error is:
cannot resolve symbol
symbol : variable out
Thanks
Jin
Antony Paul <an...@gmail.com> 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:
> Hi,
>
> It seems that System.out.printlin("...") prints to catalina.out. Is there
a way I can print to web page?
>
> Thanks,
> James
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: how to print to web page instead of catalina.out
Posted by Jin Wu <jw...@yahoo.com>.
I tried out.print(). The complation failed. The error is:
cannot resolve symbol
symbol : variable out
Thanks
Jin
Antony Paul <an...@gmail.com> 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:
> Hi,
>
> It seems that System.out.printlin("...") prints to catalina.out. Is there a way I can print to web page?
>
> Thanks,
> James
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: how to print to web page instead of catalina.out
Posted by Antony Paul <an...@gmail.com>.
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 <jw...@yahoo.com> wrote:
> Hi,
>
> It seems that System.out.printlin("...") prints to catalina.out. Is there a way I can print to web page?
>
> Thanks,
> James
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org