01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2005 Danet GmbH (www.danet.de), GS-AN.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: HelloPortlet.java,v 1.2 2006/09/29 12:32:11 drmlipp Exp $
21: *
22: * $Log: HelloPortlet.java,v $
23: * Revision 1.2 2006/09/29 12:32:11 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1 2006/06/22 10:58:54 drmlipp
27: * Pluto portal demo working again.
28: *
29: * Revision 1.3 2005/03/02 16:14:56 drmlipp
30: * Using JSP for content generation.
31: *
32: * Revision 1.2 2005/03/01 16:17:36 drmlipp
33: * Added setting of content type.
34: *
35: * Revision 1.1 2005/02/26 22:49:35 mlipp
36: * Getting started.
37: *
38: */
39: package de.danet.an.wfdemo.sampleportletapp;
40:
41: import java.io.IOException;
42:
43: import javax.portlet.GenericPortlet;
44: import javax.portlet.PortletException;
45: import javax.portlet.RenderRequest;
46: import javax.portlet.RenderResponse;
47:
48: /**
49: * This class provides a sample of a portlet implementation.
50: *
51: * @portlet.portlet name="HelloPortlet"
52: * display-name="Hello Portlet"
53: * @portlet.info title="Hello Portlet"
54: * @portlet.supports mime-type="text/html" modes="VIEW"
55: */
56: public class HelloPortlet extends GenericPortlet {
57:
58: /**
59: * Describe <code>doView</code> method here.
60: *
61: * @param request a <code>RenderRequest</code> value
62: * @param response a <code>RenderResponse</code> value
63: * @exception PortletException if an error occurs
64: * @exception IOException if an error occurs
65: */
66: public void doView(RenderRequest request, RenderResponse response)
67: throws PortletException, IOException {
68: getPortletContext().getRequestDispatcher("/hello.jsp").include(
69: request, response);
70: }
71:
72: }
|