O'Reilly logo

Liferay Portal 5.2 Systems Development by Jonas Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building an advanced Struts portlet

We have discussed the basic Struts portlet book_reports. It includes the basic features of a Struts portlet: defining the portlet in both portlet-ext.xml and liferay-portlet-ext.xml, changing the title and category in Language-ext.properties and liferay-display.xml, and creating the JSP pages with static and dynamic contents. In this section, we want to add more features to the Struts portlet: adding an action, using services, redirecting the pages, adding more actions, setting up permissions, and so on.

Adding an action

In this part, we will add an Action class to the Struts portlet, and further display a success page and an error page. As shown in the following screenshot, there are two items: an action—adding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required