<?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>Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=43914751" />
  <subtitle>Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=43914751</id>
  <updated>2026-04-07T23:47:00Z</updated>
  <dc:date>2026-04-07T23:47:00Z</dc:date>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54129564" />
    <author>
      <name>Aditya Bhardwaj</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54129564</id>
    <updated>2015-05-20T15:20:00Z</updated>
    <published>2015-05-20T15:20:00Z</published>
    <summary type="html">Thanks David</summary>
    <dc:creator>Aditya Bhardwaj</dc:creator>
    <dc:date>2015-05-20T15:20:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54131359" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54131359</id>
    <updated>2015-05-20T15:14:54Z</updated>
    <published>2015-05-20T15:14:54Z</published>
    <summary type="html">No you cannot redirect during render.  Render is responsible for creating the html fragment for the current view and cannot make such changes.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2015-05-20T15:14:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54126976" />
    <author>
      <name>Aditya Bhardwaj</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54126976</id>
    <updated>2015-05-20T14:45:14Z</updated>
    <published>2015-05-20T14:45:14Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Nilang I Patel:&lt;/div&gt;&lt;blockquote&gt;Hi Aditya,&lt;br /&gt;&lt;br /&gt;Do you know, even with renderURL you can submit form. Then &lt;a href="http://www.opensource-techblog.com/2015/03/portlet-action-phase.html"&gt;why portlet specification introduced action phase / lifecycle &lt;/a&gt;? Because portlet action phase will be called just once while render phase will be called every time the page is refreshed.&lt;br /&gt;&lt;br /&gt;So if you wrote some logic in render method, it will be called everytime the page is refreshed. So you should write logic which you want to call just once (when action url is clicked) in action method.&lt;br /&gt;&lt;br /&gt;Hope this gives desired explanation.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Nilang&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hi Nilang,&lt;br /&gt;&lt;br /&gt;Yup i know this very well.&lt;br /&gt;But the question is from render method can we forward request by using Dispatcher??&lt;br /&gt;I think not that&amp;#39;s why i write this as a difference .Correct me if i am wrong&lt;img alt="emoticon" src="@theme_images_path@/emoticons/blink.gif" &gt;</summary>
    <dc:creator>Aditya Bhardwaj</dc:creator>
    <dc:date>2015-05-20T14:45:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54123436" />
    <author>
      <name>Vikash Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54123436</id>
    <updated>2015-05-20T13:38:01Z</updated>
    <published>2015-05-20T13:38:01Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Nilang I Patel:&lt;/div&gt;&lt;blockquote&gt;Hi Aditya,&lt;br /&gt;&lt;br /&gt;Do you know, even with renderURL you can submit form. Then &lt;a href="http://www.opensource-techblog.com/2015/03/portlet-action-phase.html"&gt;why portlet specification introduced action phase / lifecycle &lt;/a&gt;? Because portlet action phase will be called just once while render phase will be called every time the page is refreshed.&lt;br /&gt;&lt;br /&gt;So if you wrote some logic in render method, it will be called everytime the page is refreshed. So you should write logic which you want to call just once (when action url is clicked) in action method.&lt;br /&gt;&lt;br /&gt;Hope this gives desired explanation.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Nilang&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Totally agreed with you :-)</summary>
    <dc:creator>Vikash Kumar</dc:creator>
    <dc:date>2015-05-20T13:38:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54121326" />
    <author>
      <name>Nilang I Patel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=54121326</id>
    <updated>2015-05-20T12:51:47Z</updated>
    <published>2015-05-20T12:51:47Z</published>
    <summary type="html">Hi Aditya,&lt;br /&gt;&lt;br /&gt;Do you know, even with renderURL you can submit form. Then &lt;a href="http://www.opensource-techblog.com/2015/03/portlet-action-phase.html"&gt;why portlet specification introduced action phase / lifecycle &lt;/a&gt;? Because portlet action phase will be called just once while render phase will be called every time the page is refreshed.&lt;br /&gt;&lt;br /&gt;So if you wrote some logic in render method, it will be called everytime the page is refreshed. So you should write logic which you want to call just once (when action url is clicked) in action method.&lt;br /&gt;&lt;br /&gt;Hope this gives desired explanation.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Nilang</summary>
    <dc:creator>Nilang I Patel</dc:creator>
    <dc:date>2015-05-20T12:51:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53069388" />
    <author>
      <name>Aditya Bhardwaj</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53069388</id>
    <updated>2015-04-28T09:46:20Z</updated>
    <published>2015-04-28T09:46:20Z</published>
    <summary type="html">Hi,&lt;br /&gt;Every one is saying actionUrl is for form submission but we can also submit form by Ajax very well .&lt;br /&gt;So my answer is  by using actionUrl you will be able  to send request further but by using renderUrl this is not possible.</summary>
    <dc:creator>Aditya Bhardwaj</dc:creator>
    <dc:date>2015-04-28T09:46:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52782117" />
    <author>
      <name>Vikash Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52782117</id>
    <updated>2015-04-22T11:54:22Z</updated>
    <published>2015-04-22T11:54:22Z</published>
    <summary type="html">Thank you Nirag.</summary>
    <dc:creator>Vikash Kumar</dc:creator>
    <dc:date>2015-04-22T11:54:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=51505674" />
    <author>
      <name>Nilang I Patel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=51505674</id>
    <updated>2015-04-03T07:10:10Z</updated>
    <published>2015-04-03T07:10:10Z</published>
    <summary type="html">As rightly said by Pankaj, Render URL is used to call render method of portlet. Action url is used to perform action (and call action method ) on portlet while resource url is used in Ajax call to fetch content other than HTML. (HTML content can also be server through resource URL).&lt;br /&gt;&lt;br /&gt;You can get more details about render url and action urls from below links.&lt;br /&gt;===Render Phase of Portelt===&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2014/12/portlet-lifecycle-method-render.html"&gt;What is Portlet Render Phase / Lifecycle&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2014/12/create-render-url-by-portlet-tag-in-jsp.html"&gt;Create Render URL by Portlet Tag&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2014/12/create-render-url-by-liferay-tag.html"&gt;Render URL by Liferay Tag&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2014/12/create-render-url-by-java-script-aui.html"&gt;Render URL by Java API&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2014/12/create-render-url-by-java-script-aui.html"&gt;Render URL by Javascrpt - AUI Module&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;===Action Phase of Portelt===&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2015/03/portlet-action-phase.html"&gt;Portlet Action Phase&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2015/03/action-url-by-portlet-actionurl-tag.html"&gt;Action URL by Portlet Tag in Liferay&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2015/04/create-action-url-programatically.html"&gt;Create Action URL programatically - through PortletURLFactoryUtil class&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2015/04/action-url-by-liferay-portleturl-createactionurl.html"&gt;Action URL through Javascript module (AUI - Liferay.PortletURL)&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.opensource-techblog.com/2015/03/portlet-action-method-invocation-in-liferay.html"&gt;How Portlet Action method invoked internally.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope You will get details information from above links.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Nilang</summary>
    <dc:creator>Nilang I Patel</dc:creator>
    <dc:date>2015-04-03T07:10:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=46439999" />
    <author>
      <name>Vikash Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=46439999</id>
    <updated>2014-12-09T14:04:34Z</updated>
    <published>2014-12-09T14:04:34Z</published>
    <summary type="html">Thanks Madhava,It was nice.</summary>
    <dc:creator>Vikash Kumar</dc:creator>
    <dc:date>2014-12-09T14:04:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=44969717" />
    <author>
      <name>Madhava Venganapalli</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=44969717</id>
    <updated>2014-11-06T15:30:17Z</updated>
    <published>2014-11-06T15:30:17Z</published>
    <summary type="html">Hi,&lt;br /&gt;In Simple&lt;br /&gt;&lt;br /&gt;ActionURL - forwards your request to processAction() &lt;br /&gt;RenderURL - forwards your request to doView()&lt;br /&gt;&lt;br /&gt;The most important difference is how the portal must handle both requests.&lt;br /&gt;As the portlet specification says:&lt;br /&gt;&lt;br /&gt;If the client request is triggered by an action URL, the portal/portlet-container must first trigger the action request by invoking the processAction method of the targeted portlet. &lt;br /&gt;&lt;br /&gt;The portal/portlet-container must wait until the action request finishes.Then, the portal/portlet-container must trigger the render request by invoking the render method for all the portlets in the portal page with the possible exception of portlets for which their content is being cached. &lt;br /&gt;&lt;br /&gt;The render requests may be executed sequentially or in parallel without any guaranteed order.</summary>
    <dc:creator>Madhava Venganapalli</dc:creator>
    <dc:date>2014-11-06T15:30:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=44029118" />
    <author>
      <name>ANIKET VERMA</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=44029118</id>
    <updated>2014-10-16T07:43:50Z</updated>
    <published>2014-10-16T07:43:50Z</published>
    <summary type="html">hi &lt;br /&gt;&lt;br /&gt;action URL is used  for form saving on the server side  and you can send parameter to the server side .&lt;br /&gt;&lt;br /&gt;render URL is used for communication between two jsp pages and you can send parameter also in the render url,&lt;br /&gt;&lt;br /&gt;resourse URL is basically used for ajax call , upload image , display image , json etc.</summary>
    <dc:creator>ANIKET VERMA</dc:creator>
    <dc:date>2014-10-16T07:43:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43927025" />
    <author>
      <name>Mahendra Panchal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43927025</id>
    <updated>2014-10-14T09:51:13Z</updated>
    <published>2014-10-14T09:51:13Z</published>
    <summary type="html">in simple word&lt;br /&gt;&lt;br /&gt;actionURL is used when you need to perfom operation with database. just like to submit data to database. perform some action.&lt;br /&gt;&lt;br /&gt;renderURL is for you need to render page from one page to another page.&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;finally  resourceURL is used for ajax call from your application..&lt;br /&gt;&lt;br /&gt;hope it help to understand.</summary>
    <dc:creator>Mahendra Panchal</dc:creator>
    <dc:date>2014-10-14T09:51:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43916545" />
    <author>
      <name>Pankaj Kathiriya</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43916545</id>
    <updated>2014-10-14T06:22:10Z</updated>
    <published>2014-10-14T06:22:10Z</published>
    <summary type="html">In Simple words, actionURL calls action phase(action method), renderURL calls render phase(render method), resourceURL used for dynamic generation of image, json data, xml etc. Refer to &lt;a href="https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/understand-portlet-execution-phases-liferay-portal-6-2-dev-guide-03-en"&gt;link&lt;/a&gt;</summary>
    <dc:creator>Pankaj Kathiriya</dc:creator>
    <dc:date>2014-10-14T06:22:10Z</dc:date>
  </entry>
  <entry>
    <title>Difference between &lt;actionURL&gt;,&lt;renderURL&gt; and &lt;resourceURL&gt;</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43914750" />
    <author>
      <name>Manohar Reddy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43914750</id>
    <updated>2014-10-14T05:19:22Z</updated>
    <published>2014-10-14T05:19:22Z</published>
    <summary type="html">Hi,&lt;br /&gt; I am new to Liferay. Any One can explains what is the difference between &amp;lt;actionURL&amp;gt;,&amp;lt;renderURL&amp;gt; and &amp;lt;resourceURL&amp;gt;. &lt;br /&gt;And In which scenarios we can use those tags? &lt;br /&gt;&lt;br /&gt;Advanced thanks, &lt;br /&gt;Manu</summary>
    <dc:creator>Manohar Reddy</dc:creator>
    <dc:date>2014-10-14T05:19:22Z</dc:date>
  </entry>
</feed>
