Using Wars

I'm not sure if this is the right forum for this but i have some questions about wars. Is it possible for me to put a war in my project and then link to pages in that war's webapp relatively as if the pages were part of my project? If so how would the page be affected by the web.xml file, would it use the war's web.xml or would it use my projects web.xml? Also how would I go about linking to this page what file structure would I follow?

[450 byte] By [tonyhaubera] at [2007-11-27 10:43:57]
# 1

hi,

I'm using tomcat and I use an XML file to deploy my web app.

the file name must have the same name as your web app. Suppose that this latter is hello.war, you should create a hello.xml file that have the folloing structure:

<?xml version="1.0" encoding="UTF-8"?>

<Context path="/hello"

reloadable="true"

docBase="D:\Java\projects\hello"

workDir="D:\Java\projects\hello\work\org\apache\jsp" >

</Context>

NB: use your web app absolute path instead of D:\Java\projects\hello.

PS: you can also define resources (db, email)in this xml file.

hope that helps

java_2006a at 2007-7-28 20:03:56 > top of Java-index,Desktop,Deploying...