-- Ron Parker Software Creations http://www.scbbs.com TradeWinds Publishing http://www.intl-trade.com TradePoint Los Angeles http://www.tradepointla.org SiteDirector Security Server http://livepublish.scbbs.com Civil War Online Library http://civilwar.scbbs.com
OK, I'm installed and ready to go. Of course, now .jsp pages which ran before don't now. My biggest problem is error handling. I have coded a .jsp page which goes out and grabs info from a database. All is fine with that. However, if there is a problem, I can't seem to get any error trapping. I get the error: Exception: java.lang.NullPointerException You might want to consider creating an error page To make things simple, I'll use the examples from the testsuite. I get the the above error when trying to run this .jsp: Note: Is there *any* way I can do the error trapping within the .jsp code rather than having to call another page to display them. I accomplished this in gnujsp 0.9.10, but can't seem to do it with 1.0? Thanks. <%@ page errorPage="valueerrorpage.jsp" %> <html> <body> <h1>2.7.1 The page directive</h1> <body> Forward exception to error page.<br> <% if(true) throw new ServletException("value1"); %> </body> </html> This is valueerrorpage.jsp: <%@ page isErrorPage="true" %> <html> <body> <h1>2.7.1 The page directive</h1> <body> This is an error page getting Message from variable "exception". <br>Value: <% Object o = exception.getMessage(); %> </body> </html> This also doesn't work if I just use <%= exception.getMessage() %> -- Ron Parker Software Creations http://www.scbbs.com TradeWinds Publishing http://www.intl-trade.com TradePoint Los Angeles http://www.tradepointla.org SiteDirector Security Server http://livepublish.scbbs.com Civil War Online Library http://civilwar.scbbs.com
