1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.portal.portlets;
18
19
20 import org.apache.jetspeed.portal.PortletException;
21
22 /***
23 * A JSP portlet example.
24 *
25 * STW: Changed to subclass the GenericMVCPortlet to help
26 * unify the handling of all template based portlets.
27 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
28 * @author <a href="mailto:sgala@apache.org">Santiago Gala</a>
29 * @author <a href="mailto:sweaver@rippe.com">Scott Weaver</a>
30 */
31 public class JspPortlet extends GenericMVCPortlet
32 {
33
34 public static final String TEMPLATE = "template";
35
36 /***
37 * STW: Backward compatibility: set the viewType to "JSP".
38 * By default the data is non cacheable
39 */
40 public void init() throws PortletException
41 {
42 setCacheable(false);
43 setViewType("JSP");
44 super.init();
45
46 }
47
48
49 }