This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.inf location

 
Mike Dev
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a list of application and folders that I would like to include in Tomcat. I already modified the server.xml to use my own directory and not the Tomcat default's one. The problem I have now is that my web.inf is growing larger and larger. Is there any possibility to having one web.xml for each application. Currently, my web.xml is in the WEB-INF folder.

Thanks.
Mike
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per the spec there is only one web.xml for each application.
It sounds to me like you have several projects running under on application.

To learn more about the definition of a web application in J2EE, you can download the Servlet Spec (link in my signature).
If you like, you can also download and run any of the demo apps that are one my site. Each is packaged as a war file that will unpack into a complete web application -- with it's own WEB-INF folder and web.xml file.

http://simple.souther.us

PS: Until you have a firm understanding of the concept, I recommend NOT altering the Tomcat config files. Just build your webapps in the tomcat/webapps folder.
 
Mike Dev
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. I see. I am studying for the Web Dev exam and was experimenting some stuff and wondered whether I missed something about the DD. I think that WAR files will simplify things. I agree with your suggestion: keep it simple.

Thanks!
Mike



Originally posted by Ben Souther:
Per the spec there is only one web.xml for each application.
It sounds to me like you have several projects running under on application.

To learn more about the definition of a web application in J2EE, you can download the Servlet Spec (link in my signature).
If you like, you can also download and run any of the demo apps that are one my site. Each is packaged as a war file that will unpack into a complete web application -- with it's own WEB-INF folder and web.xml file.

http://simple.souther.us

PS: Until you have a firm understanding of the concept, I recommend NOT altering the Tomcat config files. Just build your webapps in the tomcat/webapps folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic