Multiple choice technology web technology

Given the web application deployment descriptor: 1 2 3 *.jsp 4 false 5 6 andexample.jsp: 10 x 5 = ${10 * 5}
2 * 3 = <%= 2 * 3 %>
What is the result?

  1. An error occurs during page translation

  2. Translation is successful, but nothing is included in the response.

  3. Both "10 x 5 = 50" and "2 * 3 = 6" are included in the JSP response

  4. The text "10 x 5 = 50" is included in the JSP response, but "2 * 3 = 6" is NOT

  5. The text "2 * 3 = 6" is included in the JSP response, but "10 x 5 = 50" is NOT

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

When is false, both scripting expressions (<%= ... %>) and EL expressions (${ ... }) are allowed. Therefore, the JSP will successfully translate and execute both '10 x 5 = 50' (using EL) and '2 * 3 = 6' (using scripting expression). Setting it to true would disable scripting elements but not EL.