This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I need help on filters in WebSphere Portal 5.1.x environment. I�ve tried to implement both Servlet Filter and Portlet Filter, but none of them work as expected. Here is the layout of my application specified in DD:
In other words I have normal servlet SimpleServlet and portlet NotSimpleServlet. Note, I use Struts 1.<something> that�s why there is WpsStrutsPortlet included in NotSimpleServlet description.
I will not touch the Portlet Filter, otherwise the post will be too big. Here is my Servlet definition:
... <filter> <filter-name>MyServletFilter</filter-name> <filter-class>foo.my.MyServletFilter</filter-class> </filter> <filter-mapping> <filter-name>MyServletFilter</filter-name> <servlet-name>SimpleServlet</servlet-name> </filter-mapping> <filter-mapping> <filter-name>MyServletFilter</filter-name> <servlet-name>NotSimpleServlet</servlet-name> </filter-mapping> ... The problem is that the Servlet Filter works only for the SimpleServlet, but not NotSimpleServlet. In other words when I trigger SimpleServlet the filter is invoked, while triggering of NotSimpleServlet does not invoke the filter.
Does any one have any clue why this does not work?
Thanks in advance, Uzjd [ June 02, 2008: Message edited by: Dashk Uzjd ]