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:
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
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

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 
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 [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:
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
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

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 Message - 
From: Jin Wu [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org; Antony Paul 
[EMAIL PROTECTED]
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 [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:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 catalina.out


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:
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

how to print to web page instead of catalina.out

2005-02-22 Thread Jin Wu
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

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
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]