File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Navigating portlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Navigating portlets" Watch "Navigating portlets" New topic

Navigating portlets

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 608

Hi all,

Since there are no portlet-mappings in a portlet-xml,how are portlets navigated?If I forward to a portlet from a servlet must I then just use a named dispatcher(with the name used in portlet.xml)?


===>SCJP 1.5(72%)<===
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

You just navigate exactly the same way you would in a normal servlet/JSP application, although you use the include as opposed to the forward. So, figure out which page to show the client, and then show it!

For complex apps, we often see JSF or struts, but you can do the same thing with a portlet as the controller forwarding/including to different JSP views.

My signature links have some portlet tutorials, which include a portlet that forwards to multiple JSPs.

-Cameron McKenzie
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 608

Yes I started looking at the portorials...

What I cant figure out is which is the first method that will run in a portal class...willl processAction always be the first, or will it default to showing a view.jsp first?
I agree. Here's the link:
subject: Navigating portlets
jQuery in Action, 3rd edition