• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Navigating portlets

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic