📚 Practice Mode

Oracle WebLogic Server Fundamentals

Learn at your own pace with hints and detailed explanations

1 / 20
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