We have discussed the basic Struts portlet
book_reports. It includes the basic features of a Struts portlet: defining the portlet in both
liferay-portlet-ext.xml, changing the title and category in
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.
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 ...