Created
October 2, 2009 18:36
-
-
Save p3t0r/199989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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