If u have a try and catch statement in the servlet, u can something as
follows:
In the try block:
out = response.getWriter();
In the catch block:
response.setContentType("text/html");
out.println("<html> \n" + "<BODY BGCOLOR=\"#FDF5E6\">\n" + "<H1
ALIGN=CENTER>Test</H1>\n" + "<FORM><CENTER>\n" + "Error found is: " +
e.toString() + "\n\n<br>");
out.println("\n" + "</CENTER></FORM>\n" + "</BODY></HTML>");
This will print the error in the html page shown in the browser.
If anyone has nay better idea, please suggest.
-----Original Message-----
From: Fei Li [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 2:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Where is System.out in weblogic 5.1 ?
Servlet will run by server and System.out will output to standard output
normally screen. There is no standard output available for servlet!
3 tech. you can use for debug servlet:
1. Insert a form in servlet
2. send back debug info. back to browser.
3. write log info. to log file
Hope help
Fei Li
-----Original Message-----
From: Sylvain Roche [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 3:16 AM
To: [EMAIL PROTECTED]
Subject: Where is System.out in weblogic 5.1 ?
Hi
For 3 days I've been looking for what I write to System.out in my servlets,
and I cannot find any trace of it either in the weblogic path or in the
application directory. Is there any extra parameters to set ?
Computers are like air conditioners - they stop working
properly when you open Windows
UNIX _IS_ user friendly. It's just selective about who its friends are.
"If Bill Gates had a nickel for every time Windows crashes... Oh, wait! He
does!"
______________________________________________
Sylvain Roche
Responsable développement
Add-Online
www.add-online.fr
80 rue d'Alsace
69100 VILLEURBANNE
France
tel : +33 437431260
fax: +33 437431269
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets