Oracle
1Z0-899 · Question #160
All of your JSPs need to have a link that permits users to email the web master. This web application is licensed to many small businesses, each of which have a different email address for the web…
The correct answer is D. <a href=`mailto:${initParam.webmaterEmail}'>contact us</a>. See the full explanation below for the reasoning.
Question
All of your JSPs need to have a link that permits users to email the web master. This web application is licensed to many small businesses, each of which have a different email address for the web master. You have decided to use a context parameter that you specify in the deployment descriptor, like this: 42. <context-param> 43. <param-name>webmasterEmail</param-name> 44. <param-value>[email protected]</param-value> 45. </context-param> Which JSP code snippet creates this email link?
Options
- A<a href=`mailto:${contextParam.webmaterEmail}'>contact us</a>
- B<a href=`mailto:${applicationScope.webmaterEmail}'>contact us</a>
- C<a href=`mailto:${contextInitParam.webmaterEmail}'>contact us</a>
- D<a href=`mailto:${initParam.webmaterEmail}'>contact us</a>
How the community answered
(24 responses)- A8% (2)
- B13% (3)
- C4% (1)
- D75% (18)
Community Discussion
No community discussion yet for this question.