This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 598

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: 598

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?
subject: Navigating portlets
Similar Threads
Nested Portlets
is there any difference between portlet and portlets
My JSF Portlet Tutorial
What are portlets
spring global session scope