<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="java.util.*"%>
<%@page import="Juno2.*"%>

<html>
<head>
  <title>CmdServlet JSP - Splat</title>
  <meta name="description" content="">
  <meta name="keywords" content="">
<META name="GENERATOR" content="IBM WebSphere Studio">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF00FF">
<br><br>

<br>

<table width="100%" bgcolor="black" cellspacing="2" cellpadding="2" border="0">
  <tr>
    <td color="#FFFFFF"><font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF"><BOLD>CmdSplat</BOLD></font></td>
  </tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="1">
<%
	out.println("<tr><td>***** SESSION DATA *****</td></tr>");
	
	String firstName = (String) session.getAttribute("firstName");
	String lastName = (String) session.getAttribute("lastName");
	String userID = (String) session.getAttribute("userId");
	String userPassword = (String) session.getAttribute("userPassword");

	
	out.println("<tr><td>first name: " + firstName + "</td></tr>");
	out.println("<tr><td>last name: " + lastName + "</td></tr>");
	out.println("<tr><td>user id:" + userID + "</td></tr>");
	out.println("<tr><td>user password: " + userPassword + "</td></tr>");


	out.println("<tr><td>***** REQUEST DATA *****</td></tr>");
    	HashMap AcctList = (HashMap)request.getAttribute("AccountList");
		if(AcctList != null)
		{
			out.println("<tr><td>AccountList dump</td><tr>");
			out.println("<tr><td>");			
			out.println(AcctList);
			out.println("</td></tr>");			
		}
		else
			out.println("<tr><td>AcctList NULL</td></tr>");
			
	HashMap PosList = (HashMap)request.getAttribute("PositionList");
		if(PosList != null)
		{
			out.println("<tr><td>PositionList dump</td></tr>");
			out.println("<tr><td>");
			out.println(PosList);
			out.println("</td></tr>");
		}
		else
			out.println("<tr><td>PositionList NULL</td></tr>");
			
	HashMap EqList = (HashMap)request.getAttribute("EquityList");
		if(EqList != null)
		{
			out.println("<tr><td>EquityList dump</td></tr>");
			out.println("<tr><td>");
			out.println(EqList);
			out.println("</td></tr>");
		}
		else
			out.println("<tr><td>EquityList NULL</td></tr>");
			
	String message = (String) request.getAttribute("CmdMessage");
	out.println("<tr><td>message: " + message + "</td></tr>");

	CmdException cmdEx = (CmdException)request.getAttribute("CmdException");
	ArrayList ErrList = (ArrayList)cmdEx.getErrors();
		if(ErrList != null)
		{
			out.println("<tr><td>ErrorList dump</td></tr>");
			out.println("<tr><td>");
			out.println(ErrList);
			out.println("</td></tr>");
		}
		else
			out.println("<tr><td>ErrorList NULL</td></tr>");

%>
</table>
</body>
</html>

