| Author |
WEB-INF problem
|
Mike Broadbear
Ranch Hand
Joined: Jan 14, 2002
Posts: 39
|
|
I am attempting to use struts 1.0.2 with tomcat 4.0.1. I have a subdirectory that contains my jsps and a WEB-INF directory. The problem I am having is the jsps are referencing the WEB-INF directory in the ROOT directory of the webapps directory of tomcat, not the WEB-INF directory of my application. What is the reason for this? ...Mike
|
 |
Rahul Mahindrakar
Ranch Hand
Joined: Jul 28, 2000
Posts: 1831
|
|
There is no WEB-INF directory of a application, by which i think you mean a ear file based application. The following is the structure Ear Application --META-INF ---- application.xml --WebApplication ---- WEB-INF ------web.xml ------classes ------lib --EJB jars when you say "/" it always refers to for example \Ear Application\WebApplication in a jsp page. [ July 09, 2002: Message edited by: Rahul Mahindrakar ]
|
 |
Mike Broadbear
Ranch Hand
Joined: Jan 14, 2002
Posts: 39
|
|
I am not bundling this into an .ear file while I develop. Do .ear files work with standalone tomcat? Here is the directory structure: $CATALINA_HOME/webapps/ROOT/WEB-INF $CATALINA_HOME/webapps/ROOT/strutsShop $CATALINA_HOME/webapps/ROOT/strutsShop/WEB-INF $CATALINA_HOME/webapps/ROOT/strutsShop/WEB-INF/lib $CATALINA_HOME/webapps/ROOT/strutsShop/WEB-INF/classes ... When I run jsps in the strutsShop directory, they try to reference .jar, .tld... files in: $CATLINA_HOME/webapps/ROOT/WEB-INF
|
 |
 |
|
|
subject: WEB-INF problem
|
|
|