Hi Could someone please tell me if Old Objective 4 is there in the Beta exam.
Section 4: Designing and Developing Servlets to Handle Server-side Exceptions --------------------------------------------------------------------------------
4.1 For each of the following cases, identify correctly constructed code for handling business logic exceptions, and match that code with correct statements about the code's behavior: Return an HTTP error using the sendError response method; Return an HTTP error using the setStatus method. 4.2 Given a set of business logic exceptions, identify the following: The configuration that the deployment descriptor uses to handle each exception; How to use a RequestDispatcher to forward the request to an error page; Specify the handling declaratively in the deployment descriptor. 4.3 Identify the method used for the following: Write a message to the WebApp log; Write a message and an exception to the WebApp log.
I think 4.1 & 4.2 is still there, but not quite sure whether 4.3 is there. Anyway, 4.3 is not too complex, we can achieve it using: void ServletContext.log(String msg) void log(String message, Throwable throwable )
SCJP 91% SCJD 94% SCBCD 98% SCWCD1.4 86%<p>XML141 SCDWJS -- in progress<br />If you don't retreat, you are mostly among those who can surmount it.
Hi Thanks for the reply. But I have gone through the new objectives, but I didn't find the old objective 4.1 and 4.2 in them. Could you please tell me which new objective covers exception handling. Thank you Regards, Lalitha Chandran
"To do good, you actually have to do something." -- Yvon Chouinard
a bit of art, as a gift, the permaculture playing cards