Forums Register Login

WEB-INF problem

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1088 times.
Similar Threads
WEB_INF
WEB-INF mandatory??
mapping JSPs
Eclipse putting classes in wrong directory
How to disable a particular directory while accessing thro' ibm httpserver ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:21:25.