This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hello I have a question why doGet() throws ServletException.? i tried not to throw the ServletException, in my doGet method, but still it complie and executes fine. Can someone please explain to me why?
The JSDK framework uses the ServletException as a stansrad means of propogating and handling exceptions within a servlet. Exceptions if any within a servlet must be either converted to or wrapped around a ServletException of a subclass of ServletException. These are propogated to the servlet container which handles them suitably, according to its configuration.