Skip to content

Instantly share code, notes, and snippets.

@p3t0r
Created October 2, 2009 18:36
Show Gist options
  • Save p3t0r/199989 to your computer and use it in GitHub Desktop.
Save p3t0r/199989 to your computer and use it in GitHub Desktop.
package com.finalist.examples
import javax.portlet._
import CollectionExtensions._
class MyPortlet extends GenericPortlet {
var normalView = null:PortletRequestDispatcher
override def init(config:PortletConfig):Unit = {
super.init(config)
normalView = config.getPortletContext.getRequestDispatcher("/normal.jsp")
}
override def doView(request:RenderRequest, response:RenderResponse):Unit = {
request.setAttribute("news", convertScalaListToJavaList(NewsService.listAll))
normalView.include(request, response)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment