EMMA�Coverage�Report�(generated�Fri�Sep�15�10:32:43�EDT�2006)
[all�classes][edu.iu.uis.sit.portal.portlet.example]

COVERAGE�SUMMARY�FOR�SOURCE�FILE�[ExamplePortlet.java]

nameclass,�%method,�%block,�%line,�%
ExamplePortlet.java0%���(0/1)0%���(0/2)0%���(0/22)0%���(0/7)

COVERAGE�BREAKDOWN�BY�CLASS�AND�METHOD

nameclass,�%method,�%block,�%line,�%
class�ExamplePortlet0%���(0/1)0%���(0/2)0%���(0/22)0%���(0/7)
ExamplePortlet�():�void0%���(0/1)0%���(0/3)0%���(0/1)
doView�(RenderRequest,�RenderResponse):�void0%���(0/1)0%���(0/19)0%���(0/6)

1package�edu.iu.uis.sit.portal.portlet.example;
2
3import�java.io.IOException;
4import�java.io.PrintWriter;
5
6import�javax.portlet.GenericPortlet;
7import�javax.portlet.PortletException;
8import�javax.portlet.PortletPreferences;
9import�javax.portlet.RenderRequest;
10import�javax.portlet.RenderResponse;
11
12public�class�ExamplePortlet�extends�GenericPortlet�{
13��������public�void�doView(RenderRequest�request,�RenderResponse�response)
14������������������������throws�PortletException,�IOException�{
15����������������//�Get�our�preferences
16����������������PortletPreferences�pref�=�request.getPreferences();
17
18����������������//�Get�the�value�of�"displaytext"�from�our�preferences,�if�not
19����������������//�available,�then�use�the�second�string�passed�to�the�function
20����������������String�displayText�=�pref.getValue("displaytext",�"MISSING:�display-text");
21����������������
22����������������//�displays�the�string�from�our�preferences
23����������������response.setContentType(request.getResponseContentType());
24����������������PrintWriter�writer�=�response.getWriter();
25����������������writer.write(displayText);
26��������}
27}

[all�classes][edu.iu.uis.sit.portal.portlet.example]
EMMA�2.0.5312�(C)�Vladimir�Roubtsov