The moose likes Servlets and the fly likes WEB-INF problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "WEB-INF problem" Watch "WEB-INF problem" New topic

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?
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868
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
---- application.xml
---- WEB-INF
--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:
When I run jsps in the strutsShop directory, they try to reference .jar, .tld... files in:
I agree. Here's the link:
subject: WEB-INF problem
It's not a secret anymore!