Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » One war, several projects.
One war, several projects. [message #168897] Wed, 10 May 2006 12:58 Go to next message
Eclipse User
Originally posted by: jlagarde.assu2000.fr

I would like to publish several projects in the same war.
Each project contains java source files and jsp file.

Like this :

ProjectA
|-- .settings/.component
|-- src : my java file
|-- WebContent : my jsp, tld, xml, css, ...

ProjectB
|-- .settings/.component
|-- src : my java file
|-- WebContent : my jsp, tld, xml, css, ...

ProjectWar
|-- .settings/.component
|-- WebContent

How can I export the jsp files of project A an B to ProjectWar?
How have to be to constitute my .component files?
Something like that for the ProjectWar/.settings/.component :

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="ProjectWar">
<wb-resource source-path="/WebContent" deploy-path="/"/>
<dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/ProjectA/ProjectA">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/"
handle="module:/????/ProjectA/ProjectA">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/ProjectB/ProjectB">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/"
handle="module:/????/ProjectB/ProjectB">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="myApp"/>
</wb-module>
</project-modules>



Thanks,
Jer.
Re: One war, several projects. [message #169043 is a reply to message #168897] Thu, 11 May 2006 09:01 Go to previous message
Eclipse User
Originally posted by: jlagarde.assu2000.fr

Is it possible to have several jsp containers projects for only war in my
tomcat?

My project contains more than 700 jsp, I must divide it in module as well
as possible to manage the dependences and the deployments.
I use wtp1.0.2, is the solution it in wtp1.5 ?

Thank you for your suggestion.
Jer.


Jeremie wrote:
> I would like to publish several projects in the same war.
> Each project contains java source files and jsp file.
>
> Like this :
>
> ProjectA
> |-- .settings/.component
> |-- src : my java file
> |-- WebContent : my jsp, tld, xml, css, ...
>
> ProjectB
> |-- .settings/.component
> |-- src : my java file
> |-- WebContent : my jsp, tld, xml, css, ...
>
> ProjectWar
> |-- .settings/.component
> |-- WebContent
>
> How can I export the jsp files of project A an B to ProjectWar?
> How have to be to constitute my .component files?
> Something like that for the ProjectWar/.settings/.component :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId">
> <wb-module deploy-name="ProjectWar">
> <wb-resource source-path="/WebContent" deploy-path="/"/>
> <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/ProjectA/ProjectA">
> <dependency-type>uses</dependency-type>
> </dependent-module>
> <dependent-module deploy-path="/"
> handle="module:/????/ProjectA/ProjectA">
> <dependency-type>uses</dependency-type>
> </dependent-module>
> <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/ProjectB/ProjectB">
> <dependency-type>uses</dependency-type>
> </dependent-module>
> <dependent-module deploy-path="/"
> handle="module:/????/ProjectB/ProjectB">
> <dependency-type>uses</dependency-type>
> </dependent-module>
> <property name="context-root" value="myApp"/>
> </wb-module>
> </project-modules>
Previous Topic:Using Server Framework for BPEL
Next Topic:How can I update-to 1.0.2 ?
Goto Forum:
  


Current Time: Fri Oct 31 08:28:38 GMT 2014

Powered by FUDForum. Page generated in 0.01609 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software