Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification
IBM J2EE Practice Test
20 Free IBM J2EE Practice Questions from Whizlabs.com

Question 11

If the HTTP error 500 is generated by your servlet, you do not want to show the "Internal Server Error" page to the client. Instead, you want a custom error page to be displayed. What is the best way to accomplish this?

a. Forward the user to the error page using HttpServletResponse.sendRedirect method.

b. Forward the user to the error page using RequestDispatcher.forward method.

c. Specify the mapping of the error-code 500 and the error page in the deployment descriptor.

d. It is not possible to accomplish this.

Next page > Question 12

Explore Computer Certification

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2009 About.com, a part of The New York Times Company.

All rights reserved.