title: JspException and PageContext cannot be resolved
body: <p>This is a follow up to a question on <a href="https://stackoverflow.com/questions/13376473/accessing-resources-in-jsp-page-of-spring-mvc-app">accessing resources in jsp page of spring mvc app</a>
  Thanks to @kmb385 I was able to resolve that problem but now I get the following eclipse errors in my JSP file
  javax.servlet.jsp.JspException cannot be resolved to a type 
  and</p>
  
  <p>javax.servlet.jsp.PageContext cannot be resolved to a type </p>
  
  <p>as suggest by kmb385, here is my controller:</p>
  
  <pre><code>@Controller
  public class AdminController {
  
          @RequestMapping("/")
          protected ModelAndView handleRequestInternal(HttpServletRequest request,
              HttpServletResponse response) throws Exception {
  
              ModelAndView model = new ModelAndView("index");
              model.addObject("msg", "hello world");
  
              return model;
          }   
      }
  </code></pre>
  
  <p>and here is my index.jsp page just in case:</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;!-- &lt;link type="text/css" rel="stylesheet" href="css/style.css"/&gt; --&gt;
  &lt;style type="text/css"&gt;
      &lt;%@include file="css/style.css" %&gt;
      &lt;/style&gt;
  &lt;title&gt;My Project - MainPage&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h2 class="main_heading2"&gt;My Project - MainPage&lt;/h2&gt;
  &lt;div style="float: right; width: 30%; text-align: center"&gt;
  &lt;p style="float:left;"&gt;an image should be here&lt;/p&gt;
  &lt;img src="images/logo.jpg" alt="Logo"/&gt;
  &lt;img src="${pageContext.servletContext.contextPath}/resources/images/logo.jpg" /&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have come across "solutions" to this by disabling it in the JSP validator but Please do not suggest this unless you can give a legitimate reason. I would rather correct this issue properly</p>
  
  <p>Any Help appreciated </p>
  
  <p><strong>UPDATE:</strong>
  Build path screen grab as requested by @kmb385
  <img src="https://i.stack.imgur.com/4vqYx.png" alt="Eclipse Build Path"></p>