• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using a filter from a different eclipse project

 
Babak Shimir
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

So I feel like there must be some easy way to do this. I built a filter into my web project to handle logins. I was thinking that it would be nice to break it out into a second project, so that I can reuse my login filter in several projects. What is the proper way to do that?

At this point I tried changing my web.xml to refer to the filter by its new package name (since I pulled it out of the working project) and made the actual web project depend on the filter web project. I even tried to add the LoginFilter class as a javae EE dependant Module. This all got me to the point where I can put a "new org.test.LoginFilter()" statement into a project and not get any complaints. However, when I deploy I get errors that my org.test.LoginFilter() class cannot be found.

Is there a way to accomplish this? Or do I need to figure out how to get the project to spit out a jar and update it like 3rd party jars?

-Steve
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic