<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113595068" />
  <subtitle>prevent back  and refresh button to avoid form resubmission (Liferay 7)</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113595068</id>
  <updated>2026-04-04T21:34:54Z</updated>
  <dc:date>2026-04-04T21:34:54Z</dc:date>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114602444" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114602444</id>
    <updated>2019-08-05T08:09:34Z</updated>
    <published>2019-08-05T08:09:34Z</published>
    <summary type="html">Hi Olaf Kock,&lt;br /&gt;   Your right &amp;#34;com.liferay.portlet.action-url-redirect=true&amp;#34;  is working fine .Thanks for correcting</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-08-05T08:09:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114599100" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114599100</id>
    <updated>2019-08-05T07:45:16Z</updated>
    <published>2019-08-05T07:45:16Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Mohammed yasin:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;This i think its not supported from  Liferay 7 onwards, in 6.2 it was used for avoiding re-submission.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m assuming you mean com.liferay.portlet.action-url-redirect?&lt;br /&gt;&lt;br /&gt;According to the documentation (https://portal.liferay.dev/docs/7-2/reference/-/knowledge_base/r/portlet-descriptor-to-osgi-service-property-map) it&amp;#39;s still there, which points to it being supported - or a bug if it doesn&amp;#39;t work.&lt;br /&gt;&lt;br /&gt;In fact, the notation that Santosh B Biradar used, is the OSGi property notation (available since 7.0), not the 6.2 xml/dtd notation.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-08-05T07:45:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114601604" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114601604</id>
    <updated>2019-08-05T07:32:09Z</updated>
    <published>2019-08-05T07:32:09Z</published>
    <summary type="html">This i think its not supported from  Liferay 7 onwards, in 6.2 it was used for avoiding re-submission.</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-08-05T07:32:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114600238" />
    <author>
      <name>Santosh B Biradar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114600238</id>
    <updated>2019-08-05T06:34:13Z</updated>
    <published>2019-08-05T06:34:13Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;we can use &amp;#34;com.liferay.portlet.action-url-redirect=true&amp;#34; property for avoiding re submission of form.</summary>
    <dc:creator>Santosh B Biradar</dc:creator>
    <dc:date>2019-08-05T06:34:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114582120" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114582120</id>
    <updated>2019-08-02T14:42:22Z</updated>
    <published>2019-08-02T14:42:22Z</published>
    <summary type="html">Hi ,&lt;br /&gt;   Instead setting the render parameter you create a render url and send redirect&lt;br /&gt;        PortletURL portletURL =  PortletURLFactoryUtil.create(actionRequest, themeDisplay.getPortletDisplay().getId(), PortletRequest.RENDER_PHASE);&lt;br /&gt;            portletURL.setPortletMode(LiferayPortletMode.VIEW);        &lt;br /&gt;            portletURL.setParameter(&amp;#34;jspPage&amp;#34;, &amp;#34;&lt;strong&gt;&lt;strong&gt;/pages/result.jsp&amp;#34;&lt;/strong&gt;&lt;/strong&gt;);&lt;br /&gt;            actionResponse.sendRedirect(portletURL.toString()); </summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-08-02T14:42:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114575518" />
    <author>
      <name>pradip choudhari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114575518</id>
    <updated>2019-08-02T10:13:34Z</updated>
    <published>2019-08-02T10:13:34Z</published>
    <summary type="html">Hello &lt;strong&gt;&lt;span style="color: inherit"&gt;&lt;span style="font-family: inherit"&gt;&lt;span style="font-size: 14px;"&gt;Mohammed,&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 14px;"&gt;&lt;strong&gt;Now , I am doing like below code , after form submission we calling action method , in action method wen storing data in DB and after that we rendering to next page their we will showing him sucess message like &amp;#34;Account created successfully&amp;#34;&lt;br /&gt;&lt;br /&gt;  demo code as like below,&lt;br /&gt;  public void createUser(ActionRequest req, ActionResponse res ){&lt;br /&gt;&lt;br /&gt;  // inserting logic here &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;  actionResponse.setRenderParameter(&amp;#34;mvcPath&amp;#34;,&amp;#34;/pages/result.jsp&amp;#34;);&lt;br /&gt; }&lt;br /&gt;  &lt;br /&gt;but , here issue is like on result.jsp , when he refreshing , or clicking back button then our createUser method again executing &lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; Regards,&lt;br /&gt;  Pradip &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;</summary>
    <dc:creator>pradip choudhari</dc:creator>
    <dc:date>2019-08-02T10:13:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114578031" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114578031</id>
    <updated>2019-08-02T09:23:48Z</updated>
    <published>2019-08-02T09:23:48Z</published>
    <summary type="html">Hi , &lt;br /&gt;   After action you can create a render url and redirect to it  or  create a render url and send it to mvcrender command</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-08-02T09:23:48Z</dc:date>
  </entry>
  <entry>
    <title>prevent back  and refresh button to avoid form resubmission (Liferay 7)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113595067" />
    <author>
      <name>pradip choudhari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113595067</id>
    <updated>2019-05-10T12:48:13Z</updated>
    <published>2019-05-10T12:48:13Z</published>
    <summary type="html">we are doing payment related functionality,so after the payment completed if user can click on back button or refresh the transaction deduct twice , so how can we avoid to user for form submission . we are using Liferay7</summary>
    <dc:creator>pradip choudhari</dc:creator>
    <dc:date>2019-05-10T12:48:13Z</dc:date>
  </entry>
</feed>
