Everything went good, I got no Java Errors or something until I tried to add the Filter in my Configuration-File.
After adding the Filter, the Site crashes and I get a 404 response.
I am totally clueless what is going wrong, but I suspect the configuration written inside the web.xml:
My Filter Class looks like:
and the class where I want to modify the header data:
It would be very great if someone could help me out with that!
Florian Weber I
posted 4 years ago
Well, I finally had some progress on this issue.
For Liferay you need to use specific Render- and Action Filters and configure them in your portlet.xml.
This is what you need to configure in your Portlet.xml:
And this is my Filter so far:
The Problem I now have is that my ActionRequest has only the Portlet Parameters and I can't filter the Liferay Specific Parameters (p_auth, p_p_id, p_p_lifecycle, p_p_state, p_p_mode, p_p_col_id, p_p_col_count).
Can anyone give me some input on this problem, please?