Message Boards

Liferay 7.3 + WAB container + Struts 2 = html form params not working

Alexei Malinovski, modified 3 Years ago.

Liferay 7.3 + WAB container + Struts 2 = html form params not working

New Member Post: 1 Join Date: 4/13/21 Recent Posts

Hi community,

This may be a very high level question but I am at this moment on very high level myself. We have a huge Liferay 6.1.2 monolithyc WAR portal with like 140 portlets in it. Portlets are based on Struts 2.3 + Freemaker

Liferay 7.3 introdused OSGi but it let those huge WARs from Liferay 6 to be ported and run as via WAB. All good! 

I tried porting these portlets into Liferay 7.3 with Struts 2.3 (and 2.5) and portlets seems to work with one problem: Form params from HTML template are not pushed to Struts action as these were pushed in 6.1.2. 

- So we have UI = HTML with a form and named params

- Person press submit button

- Params parsed and put into ServletRequest objects like DynamicSrevletRequest, RenderRequestImpl and so forth. 

- At one of the filters params  that also contain form params should be pushed to action but the don in 7.3 but they pushed in 6.2 

Is there any obvious reason why is that happening? May be I am missing some obvious configuration in Liferay 7.3?