title: how to import java class in jsp page
body: <p>Hello Every one i have one jsp page which is located at webapps/ROOT and one java file which is in WEB-INF/classes. i have compiled my java file and get .class file also. now i want to import my class file into jsp page. for this purpose i have create one folder "mypackage" and put my both (class and java) files in it.after this i have try to import into jsp file. for that i have write following code.
  and mypackage is in WEB-INF/classes folder.</p>
  
  <pre><code>       &lt;%@ page  import="mypackage.Ps123" %&gt;
  </code></pre>
  
  <p>here ps123 is my class name. and when i following code</p>
  
  <pre><code>      Ps123 p = new Ps123();
  </code></pre>
  
  <p>i got error</p>
  
  <pre><code>      Only a type can be imported.mypackage.ps123 resolves to a package
        ps123 cannot be resolved to a type
  </code></pre>
  
  <p>Tell me whats wrong with this code. if i dont import java class in jsp file . it works fine.</p>