GIAC
GSSP-JAVA · Question #34
The following JSP scriptlet is given. <% response.setContentType("text/html; charset=ISO-8859-1"); %> Which of the following directives is the equivalent directive for the scriptlet given above?
The correct answer is C. <%@ page contentType="text/html; charset=ISO-8859-1" %>. See the full explanation below for the reasoning.
Question
The following JSP scriptlet is given. <% response.setContentType("text/html; charset=ISO-8859-1"); %> Which of the following directives is the equivalent directive for the scriptlet given above?
Options
- A<%@ include contentType="text/html; pageEncoding=ISO-8859-1" %>
- B<%@ include contentType="text/html; charset=ISO-8859-1" %>
- C<%@ page contentType="text/html; charset=ISO-8859-1" %>
- D<%@ taglib contentType="text/html; pageEncoding=ISO-8859-1" %>
How the community answered
(48 responses)- A8% (4)
- B2% (1)
- C75% (36)
- D15% (7)
Community Discussion
No community discussion yet for this question.