This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Configuring multiple Web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Configuring multiple Web apps" Watch "Configuring multiple Web apps" New topic
Author

Configuring multiple Web apps

Steve Brailsford
Greenhorn

Joined: Jul 28, 2001
Posts: 9
Please explain how i would configure more than one web application bearing in mind I would need two web.xml files. An example directory structure would help.
Thanks in advance
Faraz Masood
Ranch Hand

Joined: May 03, 2002
Posts: 55
i assume that you are using tomcat
let say your webapplication is in the directory d:\mywebapp
now you should keep all your html files in the same directory
place your web.xml in the d:\mywebapp\WEB-INF
and your class files in the d:\mywebapp\WEB-INF\classes
now in the tomcat directory you will find a file by the name of server.xml <<in %tomcathome%\conf>> open this file and find for a tag <ContextManager>
and add a new context tag
<Context path="/mywebapp>
docBase="C:\mywebapp
</Context>
now you can access your html files by using the url
http://127.0.0.1:8080/mywebapp/.....
but make sure that you start the server first
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Configuring multiple Web apps
 
jQuery in Action, 3rd edition