Oracle WebLogic Server Fundamentals

Casual Mode - Take your time!

1 / 20
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What is wrong with the following code ? 4. <% 5. if(strPassword.equals("boss")) 6. { 7. <jsp:forward page="Welcome.jsp" flush="true"/> 8. } 9. else 10. { 11. <jsp:forward page="Login.jsp" flush="true"/> 12. } 13. %>

  1. Unmatched bracket in for statement
  2. Flush attribute must be false
  3. Keyword 'file' should be used instead of 'page' in the <jsp:forward/> action
  4. Actions cannot be used within scriptlet blocks
Change Mode