Question

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.

Was it helpful?

Solution

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)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top