title: question regarding jsp page import and <jsp:useBean id
body: <p>Hi I have a J2EE application which is working and I has the basic structure as </p>
  
  <pre><code>APP
  
  |____login.jsp
  
  |____   other files/directories      (several other directories and files required)
  
  |____WEB-INF
  
       |__classes
               |__top
                  |___web     (has more sub directories with class files)
  |
  ______NewDir
  
        |__login2.jsp
  </code></pre>
  
  <p>I want to add another directory as shown above NewDir which would have a similar login.jsp as the one int he root directory  which uses some classes in com.top.web. etc and the login.jsp uses those at the top of the page in the following manner. </p>
  
  <pre><code>&lt;%@ include file="includes/utf8.jsp"%&gt;
  
  &lt;%@ page import = "com.top.app.login.LoginBean" %&gt;
  &lt;%@ page import = "com.top.app.login.*" %&gt;
  &lt;%@ page import = "javax.servlet.http.Cookie" %&gt;
  &lt;%@ page import = "org.apache.commons.logging.Log" %&gt;
  &lt;%@ page import = "org.apache.commons.logging.LogFactory" %&gt;
  
  &lt;jsp:useBean id="bean" scope="session" class="com.top.app.login.LoginBean"/&gt;
  </code></pre>
  
  <p>The quesiton I have is when I create that directory I need to change the above imports because obvisoulsy its not going to find those classes. How would this login2.jsp find those classes inside com.top.web... ?</p>
  
  <p>Also what about the useBean? How would that also be found?</p>