This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Intercepting HttpRequests in portlet framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Intercepting HttpRequests in portlet framework" Watch "Intercepting HttpRequests in portlet framework" New topic
Author

Intercepting HttpRequests in portlet framework

Ackshat Sharma
Greenhorn

Joined: Sep 03, 2011
Posts: 22

Hi everyone !

I am using liferay bundled with tomcat for managing my spring mvc portlets ,
recently tried to add a filter to intercept all HttpRequests in order to perform some operation on them,
I tried with the basic method of adding a XML tag in the web.xml for the associated Servlet Class as we do in our servlet based web-apps, but that does not works.
I just need to intercept all HttpRequests at very first. Is it possible in portlet development ? .
I have already tried implementing RequestDataValueProcessor class provided by Spring, but the problem is,
any method(e.g processUrl() etc.) overridden to process the HttpServletRequest is invoked for as many times as there are portlets on the page,
i.e there is no single request here instead there are splitted requests for each portlet.

Can Anyone help ?
Thanks a lot in advance.
Ackshat Sharma
Greenhorn

Joined: Sep 03, 2011
Posts: 22
Thanks Wang, I need to study Oasis WSRP first.
Right now I just want to put things in the existing framework and I have not got the solution yet and still searching.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Intercepting HttpRequests in portlet framework
 
It's not a secret anymore!