Hello Ian,
1) Start the JRun Administrator, Select the General tab, then the Java tab and make 
sure your beans or packages are in the Java Classpath.
    Restart the JRun Server.

2) Looks ok to me. For reference, we successfully use
        <%@ page language="java"
            import="se.ericsson.edt.echo.reqmgr.*,se.ericsson.edt.echo.jspbean.*"
            errorPage="ErrorPage.jsp"%>

in our .jsp-pages, and ErrorPage.jsp:

<%@ page language="java" import="java.io.*" isErrorPage="true" %>
<HTML>
    <HEAD>
        <TITLE>Error</TITLE>
    </HEAD>
    <BODY bgcolor=white background="images/bakground.gif">
        <H1><%= exception.toString() %></H1>
        <%
            // need a PrintWriter for printStackTrace to client response
            PrintWriter pw = new PrintWriter(out, out.isAutoFlush()) {
                // override println to include a HTML <BR> tag
                public void println() {
                    this.print("<BR>");
                    super.println();
                }
            };
            // print to client response
            exception.printStackTrace(pw);
            // and to System.err
            exception.printStackTrace(System.err);
        %>

    </BODY>
</HTML>

Ian Graham wrote:

1). JRun
I started off just using the Sun's JSWDK1.0.1 server and have recently tried to 
convert over to using JRUN, with GREAT difficulty. I am running on a NT Workstation 
with IIS. I have tried reading all the technical stuff that you get with JRun to get 
the two working together correctly. But my problem is to know where to put everything. 
I want to be able to call all my old beans which I had and I have looked in the 
jsm.properties file and added the paths etc but it still doesn't seem to work, I just 
keep getting the horrid 500 error in the browser. This leads me to my second 
question...
2). ErrorPages
How do I get a jsp to call the error page. From reading the document on the Sun 
website it makes it look as though all you have to do is put:

    <%@ page errorPage="errorpage.jsp" %> // in the page which could have an error, 
and then,

    <%@ page isErrorPage="true" %> in the error page,

but this doesn't work??? What else has to be done. Also what errors actually get 
trapped by this error page, is it all the exceptions??
Thanks in advance for the help,
Ian.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to