• Post Reply Bookmark Topic Watch Topic
  • New Topic

"struts_action" param inside renderURL tag for liferay's MVCPortlet  RSS feed

Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Following portlets has its class specified as "com.liferay.util.bridges.mvc.MVCPortlet"

Unit Converter, Loan Calculator, Password Generator, etc

In their view.jsp I can find the following:


In the <liferay-portlet:renderURL> tag Portlet Params are passed like

I cannot find these actions in <LIFERAY_PORTAL_SOURCE_HOME>/portal-web/docroot/WEB-INF/struts-config.xml

And on debugging I see when the request reaches to com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(RenderRequest, RenderResponse)
it uses the view configured in the parameter "view-jsp" i.e. again redirects to portlet's view.jsp

Ques. 1: Then what is the significance of passing the "struts_action" parameter in the render_url??

Ques. 2: Also in the same context each portlet has its resourceBundle configured as "com.liferay.portlet.StrutsResourceBundle".How does it work and where is the resource-bundle located as specified for the portlet?

Ques. 3: What is the decision criteria on when to use <liferay-portlet:renderURL> and <liferay-portlet:actionURL> tags? Do we have any documentation on th usage for
Liferay's tag libraries.If yes, then where can I find it.If no, then how to get familiar with the tag libraries usage fundamentals?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!