title: Error "HttpServletRequest refers to the missing type String"
body: <p>I am implementing a project in struts in which I am getting an error in a JSP page.</p>
  
  <p>I have already configured Tomcat 6, the JRE and JDK 6 in Eclipce IDE.</p>
  
  <p>The code is:</p>
  
  <pre><code>%request.getContextPath()%
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>The method getContextPath() from the type HttpServletRequest refers to the missing type String
  </code></pre>
  
  <p>How can I resolve this error?</p>