Chapter 6. Using the portlet tag library

This chapter covers

  • Accessing portlet objects in JSPs
  • Creating portlet URLs in JSPs
  • Creating portlet-specific HTML elements

Having read the past five chapters and learned the basics of working with portlets, you may be wondering if there’s an easy way to create portlet URLs or to access portlet API objects in JSP. Well, you’re about to find out.

In previous chapters, you used JSP as the view technology for displaying portlet content. In servlet-based web applications, JSPs included or forwarded by servlets have access to certain implicit variables like request, session, and so on. You used these in the Book Catalog portlet to display user information (like the name of the logged-in user) and the ...

Get Portlets in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.