• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WEB-INF problem

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic