hi can you give me some idea to move this code back to soabean (Presentation bean). currently this is in jsp.

</div>
<div id="outer_inside" class="inside">
<!---Card details Section starts-->
<%
for (int i=0; i<noOfCards; i++ ) {
//Fields to be displayed in the Card Information Section
String dispAcctNum = soaPageBean.getDisplayAccountNumber(i);
String directDebit = soaPageBean.getProjectedDirectDebitAmount(i);
String directDebitDate = soaPageBean.getDirectDebitDate(i);
String directDebitCutoffDate = soaPageBean.getDirectDebitCutoffDate(i);
String actualDirectDebitAmount = soaPageBean.getActualDirectDebitAmount(i);
String directDebitNextStatementDate = soaPageBean.getDirectDebitNextStatementDate(i);
boolean hasDirectDebit = soaPageBean.getDisplayDebitindicator(i);//IBPO
String statementBalance = soaPageBean.getStatementBalance(i);
String totalBalance = soaPageBean.getTotalBalance(i);
String paymentDue = soaPageBean.getPaymentDue(i);
String activity = soaPageBean.getNewCharges(i);
String activityDate = soaPageBean.getNewChargesDate(i);
String paymentDueDate = soaPageBean.getPaymentDueDate(i);
String availableCredit = unavailableMsg;
String paymentsAndCredits = soaPageBean.getLastPayment(i);
String stDate = soaPageBean.getStatementBalanceDate(i);
String dueDays = soaPageBean.getPastDueDays(i);
boolean hasDue = soaPageBean.getPastDueIndicator(i);
int sortedIndex = soaPageBean.getSortedIndex(i);
boolean cycleCut = soaPageBean.isCardInCycleCut(i);
boolean isCanceled = soaPageBean.isCanceled(i);
Card card = null;
String description = "American Express Card";
int styleIndex = 0;
String cardArtImp = null;
String cardNum = null;
String mrpBalance = null;
String unitDesc = null;
boolean isRevolve = false;
boolean isCharge = false;//IBPO
boolean isBasic = true;
boolean isSupp = soaPageBean.isSupp(i);
boolean isForeign = soaPageBean.isForeign(i);
boolean pastdueFlag = false;//past due
//IBPO
String debitDateDisplay = soaPageBean.getDebitDateDisplay(i);
String directDebitDisplay = soaPageBean.getDirectDebitDisplay(i);
//IBPO
String cardInfo = soaPageBean.getCardInfo(i);
if ( cardList != null )
card = cardList.getCardAtSortedIndex(sortedIndex);
if ( card != null && card.getProduct() != null ) {
cardArtImp = card.getProduct().getDigitalAssetID();
styleIndex = BorderUtil.getStyleCode(card);
description = card.getProduct().getDescription();
isRevolve = card.getProduct().getCardType().isRevolve();
isCharge = card.getProduct().getCardType().isCharge();//IBPO
isCanceled = card.getAccountStatus().isCanceled();
dueDays = (card.getAccountStatus().getDaysPastDue()!=null)?c ard.getAccountStatus().getDaysPastDue().toString() :unavailableMsg;
hasDue = card.getAccountStatus().isPastDue();
if ( card.getAccountNumber() != null ) {
cardNum = card.getAccountNumber().getAccountNumber();
isBasic = card.getAccountNumber().isBasic();
}
if ( isRevolve && cardNum != null ) {
availableCredit = soaPageBean.getCreditLimit(cardNum);
if ( availableCredit == null ) {
availableCredit = unavailableMsg;
}
}
if ( cardNum != null ) {
mrpBalance = soaPageBean.getMRPBalance(cardNum);
unitDesc = soaPageBean.getMRPUnit(cardNum);
if ( unitDesc == null ) {
unitDesc = unavailableMsg;
}
}
if((cardArtImp == null) || (cardArtImp.equals(""))){
digitalAssetIds = digitalAssetIds + defaultDAID + ",";
}
else{
digitalAssetIds = digitalAssetIds + cardArtImp + ",";
}
}
%>

<!-- GEEK: Start a Box -->
<div class="roundedBox">
<div class="<%= BorderUtil.getTopBox(styleIndex)%>"></div>
<div class="<%= BorderUtil.getContentBox(styleIndex)%>">
<p id="outer_top-para<%=i%>" class="notopgap nobottomgap">&nbsp;</p>
<div class="cardTitleWrap">
<span class="summaryCardArt">
<a title="This link allows you to view your recent transaction" href="<%=was4_domain%>/myca/estatement/japa/action?request_type=authreg_Statement&Face=<%= faceName%>&BPIndex=0&sorted_index=<%= sortedIndex%>" data = "submitFromData,'<%= sortedIndex+1%>','','leftnav'" class="wide1 summaryCardArt">
<img id="cardImage<%=i%>" src="<%= cardAsset.getCardAssetURL(cardArtImp,CardAssetDefs .TYPE_IMAGE)%>" class="reflect rheight50 ropacity60" title="This link allows you to view your recent transactions" alt="View recent transactions for <%= (("".equals(description))?"American Express Card":description)%> " />
</a>
</span>
<span class="cardTitle">
<a href="<%= was4_domain%>/myca/estatement/japa/action?request_type=authreg_Statement&Face=<%=face Name%>&BPIndex=0&sorted_index=<%=sortedIndex%>" title="This link allows you to view your recent transactions" data = "submitFromData,'<%= sortedIndex+1%>','','leftnav'"><%= ((description==null || "".equals(description))?"American Express Card":description)%>
</a>
</span>
<% if ( !isCanceled && (hasDue && dueDays != null) ) {
pastdueFlag = true;
if( (stDate != null) && (!"".equals(stDate)) && (stDate.length() > 0) ) {
%>
<div id="pastduesoa<%=i%>" class="pastdue_soa">Your account is <%= dueDays%> days overdue as of <%= stDate%><sup>#</sup></div>
<% } else { %>
<span class="cardSORStatus alertStatus">Your account is <%= dueDays%> days overdue</span>
<% } } %>
<% if ( !pastdueFlag ) { %>