exam questions

Exam 1z0-900 All Questions

View all questions & answers for the 1z0-900 exam

Exam 1z0-900 topic 1 question 12 discussion

Actual exam question from Oracle's 1z0-900
Question #: 12
Topic #: 1
[All 1z0-900 Questions]

How do you specify a default error page in your web.xml file?

  • A. <on-error> <location>/general-error.html<location> </on-error>
  • B. <error-page> <error-code>*</error-code> <location>/general-error.html</location> </error-page>
  • C. <on-error> <error-code>*</error-code> <location>/general-error.html</location> </on-error>
  • D. <error-page> <location>/general-error.html</location> </error-page>
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
devmsaleh
6 months, 1 week ago
Correct is D
upvoted 2 times
...
AlexGer721
1 year, 2 months ago
Correct is D
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago