IntelliJ Java IDE
The moose likes Portals and Portlets and the fly likes servlet filter not working in websphere portal 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "servlet filter not working in websphere portal 6.0" Watch "servlet filter not working in websphere portal 6.0" New topic
Author

servlet filter not working in websphere portal 6.0

Gyan Shankar
Ranch Hand

Joined: Dec 12, 2005
Posts: 65
We are using struts portlet bridge to migrate a struts application onto websphere portal server.
It works fine.

We need to use a servlet filter however in the portal environment the filter is ignored.
The filter works fine within tomcat version of the build.
Any idea if we need to configure anything special to make it work?


SCJP(1.4), SCWCD(1.4), SCBCD(1.3), SCDJWS
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4962

Are you using JSR168 portlets?

JSR168 portlets don't require a Servlet mapping in the web.xml file, which is where Servlet Filters are configured.

PortletFilters are a new, upcoming features with JSR268. You may have a problem getting them to work with JSR168.

Good luck.

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Gyan Shankar
Ranch Hand

Joined: Dec 12, 2005
Posts: 65
I think it is the IBM portlet api.
We are using the struts-portlet bridge.
We have just changed the request processor in the struts-config.xml to com.ibm.portal.struts.portlet.WpRequestProcessor.

Any idea how to get a normal servlet filter work in the websphere portal server?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4962

Well, you'd have to configure the filter in the web.xml file, but I would imagine it would then effect every portlet that comes in, not just one or two in particular.

JSR-268, the next version of the Portlet API, will address this, and make the whole situation much easier.

-Cameron McKenzie
 
 
subject: servlet filter not working in websphere portal 6.0
 
Threads others viewed
Struts & Vignette
problem with Servlet Filter in Portal environment
Yes, Sean Owen's Compression Filter works with /*
Applet Class not found error on Websphere Poratl Server
Problem with *.do for Compression Filter using Struts
IntelliJ Java IDE