Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Share Source between 2 web projects
Share Source between 2 web projects [message #161412] Tue, 18 July 2006 09:41 Go to next message
Rahul Kumar is currently offline Rahul Kumar
Messages: 4
Registered: July 2009
Junior Member
Hi -

How do I share the source code between two different web projects? I am
able to share source between a web project and multiple Java projects.

Please let me know.

Thanks.

Rahul
Re: Share Source between 2 web projects [message #161423 is a reply to message #161412] Tue, 18 July 2006 10:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Rahul Kumar wrote:
> Hi -
>
> How do I share the source code between two different web projects? I am
> able to share source between a web project and multiple Java projects.
>
> Please let me know.
>
> Thanks.
>
> Rahul
>

Put the common code in a Java project and have both web projects
reference it as a "J2EE Module Dependency" (in the project properties).
This has the same effect as packaging the Java project as a JAR and
putting into the WEB-INF/lib directory (which is exactly what will
happen when you export the Web Project).

Wayne
Re: Share Source between 2 web projects [message #161505 is a reply to message #161423] Tue, 18 July 2006 16:21 Go to previous message
Rahul Kumar is currently offline Rahul Kumar
Messages: 4
Registered: July 2009
Junior Member
No it cannot find any of the classes.

Thanks.

Rahul
Previous Topic:Share Source between 2 web projects
Next Topic:Need help displaying the filesystem in a view
Goto Forum:
  


Current Time: Wed Jul 23 16:27:07 EDT 2014

Powered by FUDForum. Page generated in 0.01955 seconds