RE: Unwanted resubmit after page refresh

thumbnail
Goran Marinkovic, modified 7 Years ago. New Member Posts: 12 Join Date: 3/27/18 Recent Posts

How can I prevent unwanted resubmit after page refresh and click back or going to localhost:8080 ?

thumbnail
Goran Marinkovic, modified 7 Years ago. New Member Posts: 12 Join Date: 3/27/18 Recent Posts

I find a  solution: 
put the  

session.invalidate

before unwanted part of the .jsp page (like some table)

Ravi Shah, modified 7 Years ago. Junior Member Posts: 59 Join Date: 1/2/14 Recent Posts

Hi, 

 

To prevent duplicate form submission on refresh of your page you can set below property in liferay-portlet.xml: 

 

<action-url-redirect>true</action-url-redirect>

By default it's value is false. 

 

 

raji tamil, modified 7 Years ago. New Member Posts: 3 Join Date: 6/16/18 Recent Posts

It is difficult to prevent the page from resubmission.