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>
506 IMS Connectivity in an On Demand Environment: A Practical Guide to IMS Connectivity
<%= request.getAttribute("OUT__FirstName") %>
<H3>Extension</H3>
<%= request.getAttribute("OUT__Extension") %>
<H3>ZipCode</H3>
<%= request.getAttribute("OUT__ZipCode") %>
<H5>Exception in the Main Section</H5>
<%= request.getAttribute("e") %>
<H5>Exception in the Rollback Section</H5>
<%= request.getAttribute("s") %>
<H5>Exception in the Final Section</H5>
<%= request.getAttribute("t") %>
</BODY>
</HTML>

Get IMS Connectivity in an On Demand Environment: A Practical Guide to IMS Connectivity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.