• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with Servlet Filter in Portal environment

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

<web-app id='SomeID'>

<servlet>
<servlet-name>SimpleServlet</servlet-name>
<servlet-class></servlet-class>
</servlet>

<servlet id='SomeServletID'>
<servlet-name>NotSimpleServlet</servlet-name>
<servlet-class>com.ibm.wps.pb.wrapper.PortletWrapper</servlet-class>
<init-param>
<param-name>c2a-application-portlet-class</param-name>
<param-value>
com.abnamro.oce.presentation.common.portlets.WpsStrutsPortlet
</param-value>
</servlet>

</web-app>


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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic