aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Using a filter from a different eclipse project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Using a filter from a different eclipse project" Watch "Using a filter from a different eclipse project" New topic
Author

Using a filter from a different eclipse project

Babak Shimir
Greenhorn

Joined: Dec 22, 2009
Posts: 7
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

Joined: Jan 10, 2002
Posts: 60053
    
  65

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using a filter from a different eclipse project
 
Similar Threads
How can I make a friendly URL like www.example.com/username ?
Getting started with J2EE
Different Objects from one table?
Groovy Syntax Highlighting
Integrating Wicket & Struts