Hi I have a J2EE application which is working and I has the basic structure as
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
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.
<%@ include file="includes/utf8.jsp"%>
<%@ page import = "com.top.app.login.LoginBean" %>
<%@ page import = "com.top.app.login.*" %>
<%@ page import = "javax.servlet.http.Cookie" %>
<%@ page import = "org.apache.commons.logging.Log" %>
<%@ page import = "org.apache.commons.logging.LogFactory" %>
<jsp:useBean id="bean" scope="session" class="com.top.app.login.LoginBean"/>
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... ?
Also what about the useBean? How would that also be found?