192 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
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>
<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>
Chapter 6. Post-migration activities 193
<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:
<!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, accountStatementBP. In the new folder, create
JSPs accountStatementList.jsp and errorpage.jsp.
For accountStatementList.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: accountStatement</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 - Account
Statement</FONT>
<script language="JavaScript">
194 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
function submitAction(actionName){
accountstatementForm.action=actionName;
accountstatementForm.submit();
}
</script>
<btt:form action="/accountStatementBP">
<br>
<center>
<input type=hidden name=CustomerId value="123" SIZE=15>
<btt:table dataNameForList="accountStatementDetails"
headers="{OpnDate,OpnDescription,OpnAmount,OpnBalance}" border="1"
cellspacing="1" cellpadding="0" width="70%" headerBGColor="#002184"
colAlignments="left,center,center,center" showHeaders="yes"
headerAlignment="center"/>
<br>
<br>
<br>
<br>
<input type=button value="Previous"
onClick="javascript:submitAction('/BaseSampleWeb/jsp/customerSearchBP
/customerSearchBP.do');">
</center>
</btt:form>
</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>
Create a new folder, endSession. In the new folder, create JSPs
logoffPage.jsp and errorpage.jsp.
For logoffPage.jsp:
Chapter 6. Post-migration activities 195
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import = "java.util.ResourceBundle"%>
<html>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
<%@ taglib uri="/WEB-INF/btt-html.tld" prefix="btt" %>
<body BGCOLOR="#EEEEEE">
<p>
<p>
logoff success!
</body>
</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>
In the jsp folder, create doubleClickError.jsp and errorpage.jsp.
For doubleClickError.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%@ taglib uri="/WEB-INF/btt-html.tld" prefix="btt" %>
<head>
<title>Demo Bank - Out of order</title>
<META name="GENERATOR" content="IBM WebSphere Studio">
</head>
<body BGCOLOR="#EEEEEE">
<h3 align=center><btt:label text="Double click Error"/></h3>
<br>
<br>
<P>We apologize ,you double click or reload.</P>
196 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
<table>
<tr>
<td align="center">
</td>
</tr>
</table>
<br>
<br>
<br>
<center>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=center>
</td>
</tr>
</table>
</center>
</body>
</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>
The image file back_interior.gif can be found in the
DSE_SampleApplicationWeb project in the Branch Transformation
Toolkit 4.3 workspace, WebContent/dse/html folder.
The overall file structure should look as shown in Figure 6-49 on
page 197.

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.