>From the API docs for java.lang.System: setErr
public static void setErr(PrintStream err) Reassigns the "standard" error output stream. First, if there is a security manager, its checkPermission method is called with a RuntimePermission("setIO") permission to see if it's ok to reassign the "standard" error output stream. Parameters: out - the new standard error output stream. Throws: SecurityException - if a security manager exists and its checkPermission method doesn't allow reassigning of the standard error output stream. Since: JDK1.1 See Also: SecurityManager.checkPermission(java.security.Permission), RuntimePermission > -----Original Message----- > From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 12:28 AM > To: [EMAIL PROTECTED] > Subject: Offbeat.........A Java question. > > > Hi, > > Is there any API existing which can trap the standard errors and can > display on demand. I am using an IBM API which sends the errors to > stderr which I want to trap and show to the client on demand. > > Many Thanks, > -ShriKant > > ============================================================== > ============= > 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://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com