Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WEB-INF problem

 
Mike Broadbear
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic