GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlet error attribute??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet error attribute???" Watch "servlet error attribute???" New topic
Author

servlet error attribute???

Wai Yip Lau
Greenhorn

Joined: Jun 20, 2005
Posts: 23
I think I have read through the book but I really can't find anything about this. I can't recognize what it is. Please help.

Which of the following are LEGAL servlet error attributes?

Please select three correct answers.

A : javax.servet.error.status_code
B : javax.servet.error.exception
C : javax.servet.error.uri
D : javax.servet.error.message
E : javax.servet.error.query
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi,

There is nothing in the API about these. In fact the class javax.servlet.error does not exist according to the version of the API I have.

Where does the question come from? is it on the web - if so can you post the url?

Mat
Wai Yip Lau
Greenhorn

Joined: Jun 20, 2005
Posts: 23
It is in the http://www.jiris.com/online/page.do SCWCD mock exam 1.
Sergey Tyulkin
Ranch Hand

Joined: May 10, 2005
Posts: 87
If you have a copy of Servlet 2.4 specifiaction, you may look at "SRV.9.9 Error Handling" section. It describes the ".error." attributes.
For example, you can use these attributes for error-handling:
javax.servlet.error.status_code
javax.servlet.error.exception_type
javax.servlet.error.message
javax.servlet.error.exception
javax.servlet.error.request_uri
javax.servlet.error.servlet_name

All others are wrong.

Then< correct answer is ABD
 
GeeCON Prague 2014
 
subject: servlet error attribute???