Given the element from the web application deployment descriptor:
<jsp property group>
<url pattern>/main/page1.jsp</url pattern>
<scripting invalid>true</scripting invalid>
</jsppropertygroup>
And given that /main/page1.jsp contains:
<% int i = 12; %>
<b> <%= i %> </b>
What is the result?
Correct Answer:
C
🗳️
A web application allows the HTML title banner to be set using a context initialization parameter called titlestr.
Which two properly set the title in the scenario? (Choose two)
Correct Answer:
BE
🗳️
Given:
11. <%
12. request.setAttribute ("vals", new String[] {"1", "2", "3", "4"});
13. request.setAttribute ("index", "2");
14. %>
15. <% - - insert code here - - %>
Which three EL expressions, inserted at line 15, are valid and evaluate to "3"? (Choose three)
Correct Answer:
BDG
🗳️
Given:
Which three EL expressions, inserted at line 16, are valid and evaluate to "d"? (Choose three)
Correct Answer:
ACE
🗳️