Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried to create a custom-portlet-mode portlet and tried to deploy it in Apache Pluto.but its showing error when i try to create a action URL specifying portletmode.saying its unsupported as follows.I have specifed the custom-portlet-mode in portlet.xml and also the overridden the doDispatch method.

Nested Exception is javax.portlet.PortletModeException: unsupported Portlet Mode used: save
at org.apache.pluto.core.impl.PortletURLImpl.setPortletMode(
at org.apache.pluto.tags.ActionURLTag.doStartTag(
at org.apache.jsp.mediaview_jsp._jspx_meth_portlet_actionURL_1(org.apache.jsp.mediaview_jsp:173)
at org.apache.jsp.mediaview_jsp._jspService(org.apache.jsp.mediaview_jsp:116)
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(

it would be helpful if someone could tell me whether it is supported or not and if it supports,can antyone give me links or such where i can get sample code or tutorial for this.
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible to define a new custom portlet mode by a portlet. Only a portal may introduce its own modes (like WebSphere Portal, which introduces the "config" mode).

Greetings, Stefan
author and cow tipper
Posts: 5000
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The portal itself must support any custom portlet modes you want to develop for your portlet. If you want your portlet to have a print mode, you can't just override the doDispatch method - your portal must explicitly support that portal mode. To find out which portlet modes your portal administrator had decided to support, you can always query the PortalContext.

From the WebSphere Portal Certification Guide (Test 399):

"The PortalContext has five methods, including getPortalInfo, getPropertyNames, getProperty, getSupportedPortletModes and getSupportedWindowStates. The object used to access the RequestDispatcher and the portal logging mechanism is the similarly named PortletContext object."


-Cameron McKenzie
[ October 28, 2006: Message edited by: Kameron McKenzie ]
    Bookmark Topic Watch Topic
  • New Topic