File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark ""struts_action" param inside renderURL tag for liferay Watch ""struts_action" param inside renderURL tag for liferay New topic
Author

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

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
<LIFERAY_PORTAL_SOURCE_HOME>/portal-web/docroot/WEB-INF/portlet-custom.xml

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:



etc.

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?


Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
 
GeeCON Prague 2014
 
subject: "struts_action" param inside renderURL tag for liferay's MVCPortlet