<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page session="false" import="oracle.portal.provider.v2.render.*" %>
<%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
<%@ page import="oracle.portal.sample.v2.devguide.lottery.*" %>
<%
  LottoPicker picker = new LottoPicker();
  picker.setIdentity(request.getRemoteAddr() ); %>

<% PortletRenderRequest portletRequest = (PortletRenderRequest) request.getAttribute("oracle.portal.PortletRenderRequest"); %>
<% String name = portletRequest.getUser().getName(); %>

<H1 ALIGN="CENTER"></H1>

<BR>

<!-- <H1 ALIGN="CENTER"> IP: <%= request.getRemoteAddr() %> <BR> -->
<H1 ALIGN="CENTER">Hi <%= name %>, Your Specially Picked</H1>
<P ALIGN="CENTER"><IMG SRC="<%= HttpPortletRendererUtil.absoluteLink(request, "images/winningnumbers.gif") %>" WIDTH="450" HEIGHT="69" ALIGN="BOTTOM" BORDER="0"></P>
<P>

<P ALIGN="CENTER">
<TABLE ALIGN="CENTER" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<% 
     int [] picks = picker.getPicks();
     for (int i = 0; i < picks.length; i++) { 
%>
             <TD>
     <IMG SRC="<%= HttpPortletRendererUtil.absoluteLink(request, "images/ball" + picks[i]) %>.gif" WIDTH="68" HEIGHT="76" ALIGN="BOTTOM" BORDER="0">
     </TD>

<%
     }
%>
</TR>
</TABLE>




</P>

<P ALIGN="CENTER"><BR>
<BR>
<IMG SRC="<%= HttpPortletRendererUtil.absoluteLink(request, "images/playrespon.gif") %>" WIDTH="120" HEIGHT="73" ALIGN="BOTTOM" BORDER="0">

