This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Please can you tell me how it is possible to send an error message to a jsp page from a servlet when an exception has been caught. Say I have a class MyException.java which creates a string to show a user-friendly error message. How can I get this to forward to myError.jsp as the exception class has no handle on the request or response objects for the getServletContext().getRequestDispatcher( itsPage ).include ( itsRequest, itsResponse ) method? many thanks