Appendix B. IMS RDS application example 505
LocalInput.html
LocalInput.html is HTML document that invokes the servlet for the local transaction, as shown
in Example B-4.
Example: B-4 LocalInput.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet"
type="text/css">
<TITLE>InputPage</TITLE>
</HEAD>
<BODY>
<H1>IMS Remote Database Service:Local Transaction</H1>
<H2>Enter Key Value of Person Database !</H2>
<FORM METHOD="post" ACTION="ImsRdsSample">
<H3>LastName</H3>
<P>
<INPUT TYPE="text" NAME="keyValue" ID="keyValue" SIZE="10" MAXLENGTH="10" >
</P>
<P>
<INPUT TYPE="submit" NAME="Execute" ID="Execute" VALUE="Execute">
<INPUT TYPE="reset" NAME="Reset" ID="Reset" VALUE="Reset">
</P>
</FORM>
</BODY>
</HTML>
Output.jsp
Output.jsp is the JSP file to display the results, as shown in Example B-5.
Example: B-5 Output.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet"
type="text/css">
<TITLE>OutPut page</TITLE>
<BODY>
</HEAD>
<H2>IMS Remote Database Service:Result</H2>
<H3>LastName</H3>
<%= request.getAttribute("OUT__LastName") %>
<H3>FirstName</H3>