Forums de discussion
Entry adds twice when page Reload/Refresh
venka reddy, modifié il y a 10 années.
Entry adds twice when page Reload/Refresh
Regular Member Publications: 231 Date d'inscription: 23/03/11 Publications récentes
Hi,
When i submit the form and refersh the page , again those entries inserts in the DB.
I have searched in forum to find solution , it says there are 2 ways.
1. Add <action-url-redirect> true </action-url-redirect> in liferay-portlet.xml
2. Use sendRedirect
But it says first is not recommended, prefer second way.
So why first way is not recommended ?
When i submit the form and refersh the page , again those entries inserts in the DB.
I have searched in forum to find solution , it says there are 2 ways.
1. Add <action-url-redirect> true </action-url-redirect> in liferay-portlet.xml
2. Use sendRedirect
But it says first is not recommended, prefer second way.
So why first way is not recommended ?
Tanweer Ahmed ., modifié il y a 1 année.
RE: Entry adds twice when page Reload/Refresh
Expert Publications: 322 Date d'inscription: 11/03/10 Publications récentes
Hi Venka,
I have been using the first method for a quite sometime now and never faced any problem with it.
Can you please post the link which says this is not the recommended method.
Regards,
Tanweer.
I have been using the first method for a quite sometime now and never faced any problem with it.
Can you please post the link which says this is not the recommended method.
Regards,
Tanweer.