Book Image

Liferay Portal 5.2 Systems Development

By : Jonas X. Yuan
Book Image

Liferay Portal 5.2 Systems Development

By: Jonas X. Yuan

Overview of this book

<p>Liferay portal is one of the most mature portal frameworks in the market, offering many key business benefits that involve personalization, customization, and workflow. If you are a Java developer who wants to build custom web sites and intranet applications using Liferay portal, this is where your search ends.<br /><br />This book shows how Java developers can use Liferay as a framework to develop custom intranet systems, based on Liferay portal platform thus helping you to maximize your productivity gains. Get ready for a rich, friendly, intuitive and collaborative end-user experience!<br /><br />The author's experience customizing Liferay using Java enables him to explain in a clear and precise manner how to build custom systems on top of Liferay portal. <br /><br />Using this book you can customize Liferay into a single point of access to all an organization's data, content, web content, and other information from both existing in-house applications (HR, CRM) and external sources (such as Alfresco, FatWire, Magnolia, Vignette).</p>
Table of Contents (18 chapters)
Liferay Portal 5.2 Systems Development
Credits
About the author
Acknowledgement
About the reviewer
Preface

Constructing a basic Struts portlet


As shown in the next screenshot, the Book Reports portlet lists the reports about books with the report name as a link. Clicking on this link will allow the user to view the report details. So how can we build the book_reports portlet? As mentioned earlier, the view is a JSP template, which will generate the content of the portlet by pulling out dynamic model information from the request attributes. We have provided static content from the JSP file. So how can we generate dynamic content in these JSP? Let's construct a basic Struts portlet—using book_reports as an example—to see how to build the portlet and how to generate dynamic content in the JSP files of the portlet.

As shown in the following screenshot, we are planning to build a struts portlet book_reports with the following view—a link with the message Preference, a title Book Reports, the preference name Liferay Book, and the value Liferay Portal Enterprise Intranets.

Moreover, after the link is...