title: Error - illegal to have multiple occurrences of 'contentType' with different values
body: <p>I have a dynamic web project in Eclipse which I run on Glassfish4. In the project, there is an index.jsp file given below. When I run this jsp on the server, I get the error:</p>
  
  <p><code>org.apache.jasper.JasperException: /index.jsp(1,1) PWC5988: Page directive: illegal to have multiple occurrences of 'contentType' with different values (old: text/html, new: text/html; charset=ISO-8859-1)</code></p>
  
  <p>This is an internal server error with the description - The server encountered an internal error that prevented it from fulfilling this request.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;link rel="stylesheet" type="text/css" href="css/designs.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  Content
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I looked in google and other sites, but found no working solution. The server log stack trace also did not help. Please help me.</p>