We are developing a Web application consisting of two Eclipse projects. One project is an HTTP-based RESTful Web service; the other project is a Web site. Both
Usually you create a third project (e.g. core or shared) which contains the shared code. Just depend on it from both your projects.