留言板

FriendlyURLServlet Hook

Andy Harb,修改在10 年前。

FriendlyURLServlet Hook

Junior Member 帖子: 66 加入日期: 09-10-22 最近的帖子
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
thumbnail
Bart Simpson,修改在10 年前。

RE: FriendlyURLServlet Hook

Liferay Master 帖子: 522 加入日期: 11-8-29 最近的帖子
If you'd checkout the dtd
http://www.liferay.com/dtd/liferay-hook_6_1_0.dtd
for hooks in 6.1 you'd notice
<!--ELEMENT servlet-filter (servlet-filter-name, servlet-filter-impl,
init-param*)-->
so it should be working