I have two jsps , where main.jsp includes sub.jsp
The content type of main.jsp is set as <%@ page contentType="text/html;charset=UTF-8" language="java"%>
Where as that of the sub.jsp as <%@ page contentType="text/html; charset=UTF-8" language="java" %>
(Note the space in content type)
The main.jsp includes sub.jsp using the below include tag
<%@ include file="/jsp/sub.jsp" %>
On including a file repeating the content type has no effect! But still on compilation
llegal to have multiple occurrences of contentType with different values (old: text/html;charset=UTF-8, new: text/html; charset=UTF-8)
Confused ! Does a "space" makes it a different content type? What happens with content type during compilation? Is it taken as two different content types ? Why do I get this exception!