wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Navigating portlets" Watch "Navigating portlets" New topic
Author

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)?


Thanks


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

Joined: Aug 26, 2006
Posts: 4968
    
    1

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?
 
Don't get me started about those stupid light bulbs.
 
subject: Navigating portlets