Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigating portlets

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic