Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andy Harb
FriendlyURLServlet Hook
June 3, 2013 4:33 PM
Answer

Andy Harb

Rank: Junior Member

Posts: 64

Join Date: October 22, 2009

Recent Posts

Hi,

I am in the process of upgrading our Liferay 6.0 instance into LR 6.1. As part of it I'm trying to shift everything I can out of the EXT environment and into Hooks. One of the changes that was made was overriding the "/com/liferay/portal/servlet/FriendlyURLServlet.java" with our own implementation.

I was wondering if it was possible to override this Servlet using a hook and if so the approach to take. I have read some things regarding Servlet Filter hooks but I don't think they apply for what I need.

Any pointers or advice would be greatly appreciated.

Thanks
Andy
Bart Simpson
RE: FriendlyURLServlet Hook
June 3, 2013 9:54 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

If you'd checkout the dtd
1http://www.liferay.com/dtd/liferay-hook_6_1_0.dtd
for hooks in 6.1 you'd notice
1<!ELEMENT servlet-filter (servlet-filter-name, servlet-filter-impl,
2init-param*)>
so it should be working