IntelliJ Java IDE
The moose likes Other Application Frameworks and the fly likes does WIcketFilter process subclasses of HttpServlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "does WIcketFilter process subclasses of HttpServlet ?" Watch "does WIcketFilter process subclasses of HttpServlet ?" New topic
Author

does WIcketFilter process subclasses of HttpServlet ?

Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 59
IN the API for WicketFIlter, we read:
"The advantage of a filter is that, unlike a servlet, it can choose not to process the request and let whatever is next in chain try. So when using a Wicket filter and a request comes in for foo.gif the filter can choose not to process it because it knows it is not a wicket-related request. Since the filter didn't process it, it falls on to the application server to try, and then it works."

I have adopted Wicket recently to upgrade an old application where most of the classes are still subclasses of HttpServlet.
I think the wicket filter does not process classes that extend HttpServlet, but only those that extend Wicket WebPage, etc.



Could anyone confirm ?





Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32769
Filters do not process classes, they process requests to URLs. Which ones those are depends on how they are mapped in the web.xml file.


Android appsImageJ pluginsJava web charts
Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 59


"This filter can be used to make the Wicket WebSession instances available to non-wicket servlets. "
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html

 
 
subject: does WIcketFilter process subclasses of HttpServlet ?
 
Threads others viewed
SingleThreadModel
can we write test classes(test cases)for action class that extend DispatchAction
Exception logging from servlets
Wicket in Action - Wicket's friends
Forwarding data from class
developer file tools