<%@ page import="dataentry.forms.*"%>

<% response.setContentType("text/xml") ; %>
<%
	String action = request.getParameter("action");
	if (action != null && action.equals("insert")) {
		StudentFormInsertUpdate iForm = (StudentFormInsertUpdate) session.getAttribute("studentFormInsert");
%>
		<student>
			<id><%= iForm.getId() %></id>
			<first><%= iForm.getFirst() %></first>
			<middle><%= iForm.getMiddle() %></middle>
			<last><%= iForm.getLast() %></last>
		</student>
<%
 	} else if (action != null && action.equals("update")) {
		StudentFormInsertUpdate iForm = (StudentFormInsertUpdate) session.getAttribute("studentFormUpdate");
%>
		<student>
			<id><%= iForm.getId() %></id>
			<first><%= iForm.getFirst() %></first>
			<middle><%= iForm.getMiddle() %></middle>
			<last><%= iForm.getLast() %></last>
		</student>
<%
 	} else if (action != null && action.equals("delete")) {
		StudentFormDelete iForm = (StudentFormDelete) session.getAttribute("studentFormDelete");
%>
		<student>
			<id><%= iForm.getId() %></id>
		</student>
<%
	}
%>
