Hi, If an exception occurs in doPost or doGet method of the servlet we redirect it to an errorjsp. We are looking up for the Home Object in init() method. If this process fails the response object is not available for redirecting. How do we handle this? Any suggestions would be highly appreciable. TIA, Nijeesh.
Thanks & Regards,<br />Nijeesh.
posted 13 years ago
Hi, Have a boolean filed as false initially and when u get an exception while look up of ur home, catch it within the init and in the catch block change the boolean value to true then in the doPost or on doGet method just before doing any processing check first the value of the boolean, if true (exception has occured) redirect to proper error page if false ( no exception has occured ) simply walk through...