Oracle
1Z0-899 · Question #169
View the Exhibit. Given the web application deployment descriptor elements: 11. <filter> 12. <filter-name>ParamAdder</filter-name> 13. <filter-class>com.example.ParamAdder</filter-class> 14…
The correct answer is A. The output "filterAdded = null" is written to the response stream. See the full explanation below for the reasoning.
Question
View the Exhibit. Given the web application deployment descriptor elements: 11. <filter> 12. <filter-name>ParamAdder</filter-name> 13. <filter-class>com.example.ParamAdder</filter-class> 14. </filter> ... 31. <filter-mapping> 32. <filter-name>ParamAdder</filter-name> 33. <servlet-name>Destination</servlet-name> 34. </filter-mapping> ... 55. <servlet-mapping> 56. <servlet-name>Destination</servlet-name> 57. <url-pattern>/dest/Destination</url-pattern> 58. </servlet-mapping> What is the result of a client request of the Source servlet with no query string?
Exhibit
Options
- AThe output "filterAdded = null" is written to the response stream.
- BThe output "filterAdded = addedByFilter" is written to the response stream.
- CAn exception is thrown at runtime within the service method of the Source servlet.
- DAn exception is thrown at runtime within the service method of the Destination servlet.
How the community answered
(13 responses)- A77% (10)
- C8% (1)
- D15% (2)
Community Discussion
No community discussion yet for this question.
