title: No styles on jsp error page
body: <p>I am having some troubles in my practice project. </p>
  
  <p>I have a small media portal project written on Servlets/JSP. In this project I have created some custom exceptions hierarchy to handle situations like "Incorrect password", "Such user is already registered" etc. In Servlets, which throw errors I throw them like this:</p>
  
  <pre><code>        if (login.length() == 0) {
          log.error("Login field is empty!");
          throw new EmptyFieldException(i18n.getString("Login_field_is_empty!"));
      }
  </code></pre>
  
  <p>Also I have error page, which looks like this:</p>
  
  <pre><code>    &lt;%@ page contentType="text/html" pageEncoding="windows-1251" isErrorPage="true" import="java.util.ResourceBundle,java.io.*" %&gt;
  &lt;%@ taglib uri="/WEB-INF/taglib.tld" prefix="taglib" %&gt;
  &lt;!DOCTYPE html&gt;
  &lt;%
      ResourceBundle resources = ResourceBundle.getBundle("i18n.MediaPortal", request.getLocale());
  %&gt;
  &lt;html style="height:100%;"&gt;
      &lt;head&gt;
          &lt;link rel="stylesheet" type="text/css" href="../css/style.css"&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1252"&gt;
          &lt;title&gt;&lt;%= resources.getString("Login_page")%&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="sidecolumn"&gt;&amp;nbsp&lt;/div&gt;
          &lt;div id="content"&gt;
              &lt;div&gt;&lt;h1&gt;&lt;%= resources.getString("You_have_encountered_an_error")%&gt;.&lt;/h1&gt;&lt;/div&gt;
              &lt;div&gt;&lt;h3&gt;&lt;%= exception.getMessage() %&gt;&lt;/h3&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="sidecolumn"&gt;&amp;nbsp&lt;/div&gt;
          &lt;div id="footer"&gt;&lt;taglib:sign/&gt;&lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is when I throw an exception - all works fine except that error page doesn't load any styles at all! there's just text. But when I go directly to the error pages url - styles are loaded. The problem is that servlet ends with the status code 500 and this code, if I understand right, cancel's style.css file loading.</p>
  
  <p>Anyone, please, point me to the solution of this problem.
  Every answer is appreciated.</p>