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

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, ...

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