• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing classes in another Web Project  RSS feed

 
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
Posts: 20943
81
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
Posts: 65899
135
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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!