Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet error attribute???

 
Wai Yip Lau
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is in the http://www.jiris.com/online/page.do SCWCD mock exam 1.
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic