Combination View Flat View Tree View
Threads [ Previous | Next ]
venka reddy
Entry adds twice when page Reload/Refresh
September 6, 2013 2:39 PM

venka reddy

Rank: Regular Member

Posts: 231

Join Date: March 23, 2011

Recent Posts


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 .
RE: Entry adds twice when page Reload/Refresh
September 7, 2013 1:58 PM

Tanweer .

Rank: Expert

Posts: 319

Join Date: March 11, 2010

Recent Posts

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.