Using Interceptor in Websphere Portal and Spring Portlet 3.0
Spring has come up with Spring Portlets for websphere portal. There are lot of documentation available which talks about integration steps for Spring and websphere portal. But i struggled to find how to use interceptor with spring portlet 3.0. I have used Spring with J2EE applications and using interceptor was very straight forward. We need to put entry in springContext.xml file and map all the controller who needs to use this interceptor. For Spring portlet there are different steps which you need to do to configure Interceptor. Follow the below steps: 1. Create Interceptor class in your project. check the sample interceptor code below. package com.custom.interceptor; import javax.portlet.PortletRequest; import javax.portlet.PortletResponse; import javax.portlet.PortletSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.portlet.ModelAndView; import org.springframework.web.portlet.ModelAndViewDefiningException; import org....