문제

I need to create a custom url filter (with tuckey.org) for resource URL in liferay portal, but I don't know how to distinguish URL created by liferay with @ResourceMapping annotation and the same created with @ActionMapping. Liferay adds to action and resource URLs some parameters by default. I want to apply my filter only to resource links. Please help me to understand a difference between these URLs.

Thanks a lot for the advice.

도움이 되었습니까?

해결책

All resource requests have the request-param p_p_lifecycle=2 in their url, whilst action requests have p_p_lifecycle=1 and render requests p_p_lifecycle=0 (which is the default and often omitted)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top