Multiple choice technology programming languages

Which of the below are correct ?

  1. <%@ include page="/test.jsp" %>

  2. <jsp:include page="/test.jsp" />

  3. <jsp:include file="/test.jsp" />

  4. <%@ inlcude file="/test.jsp" %>

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Explanation

Option B is correct - jsp:include action with page attribute is valid JSP syntax. Option D has a typo 'inlcude' but is meant to represent the include directive with file attribute, which is valid syntax. Option A uses page with directive (wrong), and C uses action with file (wrong - should be page).