• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing classes in another Web Project

 
Mr Shaw
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is it possible to access a class and its methods from within a different web project.

My intention is to have two dynamic web projects both accessing code from a third dynamic web project which contains a webservice.

I have tried adding the service project to the build path of the other two. I have also tried adding it as a project reference?

Any help would be much appreciated.

Thanks

Shaw
 
Rob Spoor
Sheriff
Pie
Posts: 20671
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Servlets.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want a run-time solution or a build solution? You seem to indicate the former, than start talking about the latter. Which is it?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch. You can either make remote calls to the web service or if you want to use specific classes, you can add a project reference or import jar files. Which approach are you looking to take ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic