title: Importing a class in a JSP file
body: <p>I wrote some code as a Java Servlet and now I am trying to convert it to a JSP. I wrote a class in a separate file which I was using, and I can't figure out how to get the JSP file to recognize the class. I guess it has something to do with importing. I gave the class a package (<code>package mypackagename;</code>) name and I tried using <code>&lt;%@ page import="mypackagename"%&gt;</code> but I get an error: </p>
  
  <blockquote>
    <p>The import "mypackagename" cannot be resolved</p>
  </blockquote>