Chapter 6. Post-migration activities 187
For customerSearchList.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/btt-html.tld" prefix="btt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<btt:html>
<HEAD>
<title>Demo Bank - Transactions Page</title>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
<body bgcolor="#3366FF" text="#FFFFFF"
background="/BaseSampleWeb/jsp/images/back_interior.gif">
<FONT size="5" color="#FFFFFF" face="Arial">Demo Bank - Transactions
Page</FONT>
<script language="JavaScript">
function submitAction(actionName){
customerSearchForm.action=actionName;
customerSearchForm.submit();
}
</script>
<br>
<p>
<btt:form action="/customerSearchBP">
<center>
<table border="1" cellspacing="1" cellpadding="1" width=60%>
<TR>
<TD height="40" bgcolor="#002184" align="center"
colspan="4"><FONT face="Verdana" size="2"
color="#FFFFFF"><STRONG>Customer Name: </STRONG>
<btt:label dataName="CustomerName"/>
</FONT></TD>
</TR>
<TR>
<TD height="35" bgcolor="#002184" width="35%" align="left"><FONT
face="Verdana" size="2" color="#FFFFFF"><STRONG>Account
Number</STRONG></FONT></TD>
<TD bgcolor="#0A35B8" align="right"><FONT face="Verdana" size="2"
color="#FFFFFF">
<btt:combo dataName="AccountNumber" dataNameForList="accounts"
value="AccountNumber" item="Name"/>
</FONT></TD>
</TR>
<TR>
<TD height="35" bgcolor="#002184" width="35%" align="left"><FONT
face="Verdana" size="2"
color="#FFFFFF"><STRONG>Amount</STRONG></FONT></TD>
188 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
<TD bgcolor="#0A35B8" align="right"><FONT face="Verdana" size="2"
color="#FFFFFF">
<btt:text property="Amount"/></FONT></TD>
</TR>
</table>
<table align="center" border="0" cellspacing="0" cellpadding="0"
width=60%>
<TR align="center" valign="baseline">
<TD align="center"><input type=button align="middle" value="Deposit"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/depositBP/deposi
tBP.do');"></TD>
<TD align="center"><input type=button align="middle"
value="Withdrawal"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/withdrawalBP/wit
hdrawalBP.do');"></TD>
<TD align="center"><input type=button align="middle" value="Account
Statement"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/accountStatement
BP/accountStatementBP.do');"></TD>
<TD align="center"><input type=button align="middle" value="Cancel"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/endSession/endSe
ssion.do');" ></TD>
</TR>
</table>
</center>
</btt:form>
<br>
<br>
<br>
</body>
</btt:html>
For errorpage.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Message Page</title>
<META name="GENERATOR" content="IBM WebSphere Studio">
</head>
<body BGCOLOR="#EEEEEE">
<h3 align=center>System Message</h3>
<P></P>
<P>You may go back and correct the application. If you have any
question, please call <B>99-9-999-999-9999</B> and we will be happy
to help you to take your application.</P>
</body>
</html>
Chapter 6. Post-migration activities 189
Create a new folder, depositBP. In the new folder, create new JSPs
depositList.jsp, errorpage.jsp.
For depositList.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/btt-html.tld" prefix="btt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<btt:html>
<HEAD>
<title>Demo Bank - Transactions Page</title>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
<body bgcolor="#3366FF" text="#FFFFFF"
background="/BaseSampleWeb/jsp/images/back_interior.gif">
<FONT size="5" color="#FFFFFF" face="Arial">Demo Bank - Transactions
Page</FONT>
<script language="JavaScript">
function submitAction(actionName){
depositForm.action=actionName;
depositForm.submit();
}
</script>
<br>
<p>
<btt:form action="/depositBP">
<center>
<table border="1" cellspacing="1" cellpadding="1" width=60%>
<TR>
<TD height="40" bgcolor="#002184" align="center"
colspan="4"><FONT face="Verdana" size="2"
color="#FFFFFF"><STRONG>Customer Name: </STRONG>
<btt:label dataName="CustomerName"/>
</FONT></TD>
</TR>
<TR>
<TD height="35" bgcolor="#002184" width="35%" align="left"><FONT
face="Verdana" size="2" color="#FFFFFF"><STRONG>Account
Number</STRONG></FONT></TD>
<TD bgcolor="#0A35B8" align="right"><FONT face="Verdana" size="2"
color="#FFFFFF">
<btt:combo dataName="AccountNumber" dataNameForList="accounts"
value="AccountNumber" item="Name"/>
</FONT></TD>
</TR>
<TR>
190 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
<TD height="35" bgcolor="#002184" width="35%" align="left"><FONT
face="Verdana" size="2"
color="#FFFFFF"><STRONG>Amount</STRONG></FONT></TD>
<TD bgcolor="#0A35B8" align="right"><FONT face="Verdana" size="2"
color="#FFFFFF">
<btt:text property="Amount"/></FONT></TD>
</TR>
</table>
<table align="center" border="0" cellspacing="0" cellpadding="0"
width=60%>
<TR align="center" valign="baseline">
<TD align="center"><input type=button align="middle" value="Deposit"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/depositBP/deposi
tBP.do');"></TD>
<TD align="center"><input type=button align="middle"
value="Withdrawal"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/withdrawalBP/wit
hdrawalBP.do');"></TD>
<TD align="center"><input type=button align="middle" value="Account
Statement"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/accountStatement
BP/accountStatementBP.do');"></TD>
<TD align="center"><input type=button align="middle" value="Cancel"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/endSession/endSe
ssion.do');" ></TD>
</TR>
</table>
</center>
</btt:form>
<br>
<br>
<table>
<TR> <TD align=left><FONT face="Verdana" size="2"
color="#FFFFFF">Balance: </FONT></TD>
<TD align=left><FONT face="Verdana" size="2"
color="#FFFFFF"><btt:label
dataName="AccountBalance"/></FONT></TD></TR>
<TR> <TD align=left><FONT face="Verdana" size="2"
color="#FFFFFF">Message: </FONT></TD>
<TD align=left><FONT face="Verdana" size="2" color="#FFFFFF">
Transaction Successful </FONT></TD></TR>
</table>
<br>
</body>
</btt:html>
For errorpage.jsp:
Chapter 6. Post-migration activities 191
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Message Page</title>
<META name="GENERATOR" content="IBM WebSphere Studio">
</head>
<body BGCOLOR="#EEEEEE">
<h3 align=center>System Message</h3>
<P></P>
<P>You may go back and correct the application. If you have any
question, please call <B>99-9-999-999-9999</B> and we will be happy
to help you to take your application.</P>
</body>
</html>
Create a new folder, withdrawalBP. In the new folder, create JSPs
withdrawalList.jsp and errorpage.jsp.
For withdrawalList.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/btt-html.tld" prefix="btt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<btt:html>
<HEAD>
<title>Demo Bank - Transactions Page</title>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
<body bgcolor="#3366FF" text="#FFFFFF"
background="/BaseSampleWeb/jsp/images/back_interior.gif">
<FONT size="5" color="#FFFFFF" face="Arial">Demo Bank - Transactions
Page</FONT>
<script language="JavaScript">
function submitAction(actionName){
withdrawalBPForm.action=actionName;
withdrawalBPForm.submit();
}
</script>
<br>
<p>
<btt:form action="/withdrawalBP">
<center>
<table border="1" cellspacing="1" cellpadding="1" width=60%>
<TR>
<TD height="40" bgcolor="#002184" align="center"
colspan="4"><FONT face="Verdana" size="2"

Get IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines 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.