I am using JSP. I have a package of java classes that write error
messages to standard out when they catch an error. Works fine on the
command line. Problem occurs when using in JSP. I include them with a
page directive (importing the package)rather than use them as beans,
since they do so much more than beans do.
<%@ page import="OPS.*" %>
When errors occur, messages to “standard out” don’t appear in the html
output of the JSP. I don’t know where they are going (they aren’t in the
web server’s error log), but they aren’t going where I expected them to.
I figured that standard out was the html page (httpServletResponse). Where am I going wrong
here?
java class uses
catch (Exception e)
{System.out.println(“Exception caught: “);
System.out.println(e.getMessage());
return false;
}
I never see the above error message when including this as JSP, but see
it when using a wrapper class invoked at the command line. The method
call that would
generate this message is inside the body of the html, if that matters at
all. Output generated after the error would have occured shows up, so
it’s not a buffer issue AFAICT.
Any ideas?
Thanks!