Hi All,
I attach the code for showing 10 records in a jsp.
Hope this would help u
Thanks and Regards
Murali



MURALIDHAR NO 7 , KANNAIAH NAIDU STREET NORTH OSMAN RAOD, T-NAGAR, CHENNAI-17

Off. ph no. (044) 6256437 ext 222

Residence Phone No. :(044) 8250583



Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup
package gov.nmdol.uiclaim.servlets;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.ServletException;
import java.io.IOException;
import gov.nmdol.uiclaim.error.UICBusinessException;
import gov.nmdol.uiclaim.error.UICErrorHandler;
import gov.nmdol.uiclaim.bean.UICPMPProcessorHelper;
import gov.nmdol.uiclaim.bean.UICScrPmpAffDtlsBean;
import gov.nmdol.uiclaim.bean.UICScrPmpClmntDtlsBean;
import gov.nmdol.uiclaim.bean.UICScrPmpRptMissPmtBean;
import gov.nmdol.uiclaim.bean.UICScrPmpTerminateDtlsBean;
import gov.nmdol.uiclaim.bean.UICScrPmpWarrDtlsBean;
import gov.nmdol.uiclaim.bean.UICScrPmpWrkItmBean;
import gov.nmdol.uiclaim.bean.UICScrPmpWrkItmDtlsBean;
import gov.nmdol.uiclaim.bean.UICMissingWarrantBean;
import gov.nmdol.uiclaim.bean.UICMissingWarrantDtlBean;
import gov.nmdol.uiclaim.bean.UICMissingWarrantAffDtlBean;
import gov.nmdol.uiclaim.bean.UICWarrantBean;
import gov.nmdol.uiclaim.bean.UICScrEnterSSNBean;
import gov.nmdol.uiclaim.bean.UICClaimantBean;
import gov.nmdol.uiclaim.bean.UICServContextBean;
import gov.nmdol.uiclaim.bean.UICWorkItemBean;
import gov.nmdol.uiclaim.bean.UICPmpDeleteAndReIssueHelper;
import gov.nmdol.uiclaim.bean.UICPMPWorkItemHelper;
import gov.nmdol.uiclaim.bean.UICPMPProcessorHelper;
import gov.nmdol.uiclaim.bean.UICWorkDetailsBean;
import gov.nmdol.uiclaim.util.UICDomainUtil;
import gov.nmdol.uiclaim.util.UICUtil;
import gov.nmdol.uiclaim.util.UICTxnInfo;
import gov.nmdol.uiclaim.util.UICDbUtil;
import gov.nmdol.uiclaim.util.UICBusBeanNames;
import gov.nmdol.uiclaim.util.UICJSPNames;
import gov.nmdol.uiclaim.util.UICScrBeanNames;
import gov.nmdol.uiclaim.util.UICScrFieldNames;
import gov.nmdol.uiclaim.util.UICCollection;
import gov.nmdol.uiclaim.util.UICSessionAttributeNames;
import gov.nmdol.uiclaim.util.UICEJBRemoteFactory;
import gov.nmdol.uiclaim.util.UICEvent;
import gov.nmdol.uiclaim.util.UICConcurrencyCheckUtil;
import gov.nmdol.uiclaim.util.UICHelperBase;
import gov.nmdol.uiclaim.ejb.IUICPMPCorrespondence;
import gov.nmdol.uiclaim.ejb.IUICPMPCorrespondenceHome;
import gov.nmdol.uiclaim.ejb.IUICPMPManager;
import gov.nmdol.uiclaim.ejb.IUICPMPManagerHome;
import gov.nmdol.uiclaim.ejb.IUICPMPDelPmt;
import gov.nmdol.uiclaim.ejb.IUICPMPDelPmtHome;
import gov.nmdol.uiclaim.ejb.IUICPMPPmt;
import gov.nmdol.uiclaim.ejb.IUICPMPPmtHome;
import gov.nmdol.uiclaim.ejb.IUICDocGenEJBBase;
import gov.nmdol.uiclaim.ejb.IUICDocGenForBPC;
import gov.nmdol.uiclaim.ejb.IUICDocGenForBPCHome;

/**
 *
 * Description           :      This servlet contains the handle methods for
 *                              display of the work items, navigation to the 
Affdidavit response page,
 *                              Redwar response page, Terminate screen, Missing 
Warrant proceesing
 *                              Dashboard screen.
 */

public class UICPMPWorkItemServlet extends UICBaseServlet {
        private  static String SYSTEM_ERRORCODE = "1001";
        private  static String CONN_ERRORCODE   = "5001";

/**
 * Returns the servlet info string.
 */
public String getServletInfo() {

        return super.getServletInfo();

}
/**
 * Description          :       This Method  Looks for The Remote EJB Interface
                                                and gets the values in a collection 
Object and
                                                displays WorkItems page.
 * @params                  :   request HttpServletRequest Http servlet request object
 * @params                  :   response HttpServletResponse Http servlet response 
object
 * @params                  :   LastWorkItemNo int Last work item number
 * @params                  :   forwardOrBackWard String
 * @returns             :   UICCollection collection
 * @throws          :   UICBusinessException represents UIClaims Business exception
 * @Attributes taken from session       :UICCollection collection
 * @Attributes put in the session       :--
 * @Attributes removed from the session :--
 */
    private UICCollection getWorkItemList(HttpServletRequest 
request,HttpServletResponse response,
        int LastWorkItemNo,String forwardOrBackWard)throws UICBusinessException
    {
         UICErrorHandler.printDebug("Entered Into Method :UICPMPWorkItemServlet: 
getWorkItemList");
            UICCollection collection = null;

        try
        {
                HttpSession session = request.getSession();
                collection = (UICCollection)session.getAttribute(UICUtil.COLLECTION);

            collection.put(UICDbUtil.LAST_KEY, 
UICHelperBase.getStringValue(LastWorkItemNo));
            collection.put(UICDbUtil.FORWARD_BACKWARD, forwardOrBackWard);


            //Calling EJB begins to get the workItem details corresponding
                        //to the above workitemtype codes

                        IUICPMPManager remotePMPMgr = 
UICEJBRemoteFactory.getPMPManagerRemote();

                        collection = remotePMPMgr.getWorkItemsInCtrlr(collection);

                        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: getWorkItemList");

                        //Calling EJB ends
        }
        catch (Exception e)
        {
            UICErrorHandler.handleException(
                this.getUserID(request),
                this.getHandleID(request),
                UICUtil.FATAL,
                UICUtil.SYSTEM_ERROR,
                SYSTEM_ERRORCODE,
                "",
                false,
                e);
        }
        return collection;
    }
/**
  * Description         :       This Method is Called when User Click the Close button
  *                                             in work item screens.
  * @params                 :   request HttpServletRequest represents Http servlet 
Request object
  * @params                 :   response HttpServletResponse represents Http servlet 
Response object
  * @param          :   collect UICCollection represents collection
  * @returns            :   void
  * @throws             :   UICBusinessException represents UIClaims Business exception
  * @throws             :   IOException  Input/Output exception
  * @throws             :   ServletException servlet exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :--
  * @Attributes removed from the session :--
  */
private void handleCancelWarrDtls_160_CAN(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collect)
    throws ServletException, IOException, UICBusinessException {
    UICErrorHandler.printDebug(
        "Entered Into Method :UICPMPWorkItemServlet: handleCancelWarrDtls_160_CAN");

    UICErrorHandler.printDebug(
        "Returning From Method :UICPMPWorkItemServlet: handleCancelWarrDtls_160_CAN");
    handlePmpWorkItm_PMP_004(request, response, collect);
    }
/**
  * Description         :       This Method is Called when User Click the Back button
  *                                             to get the previous work item list.
  * @params                 :   request HttpServletRequest represents Http servlet 
Request object
  * @params                 :   response HttpServletResponse represents Http servlet 
Response object
  * @returns            :   void
  * @throws             :   UICBusinessException represents UIClaims Business excepton
  * @Attributes taken from session       :UICCollection collection
  * @Attributes put in the session       :UICCollection collection
  * @Attributes removed from the session :--
  */
private void handlePMPRqstBck(
    HttpServletRequest request,
    HttpServletResponse response)
    throws UICBusinessException {
    UICErrorHandler.printDebug(
        "Entered Into Method :UICPMPWorkItemServlet:handlePMPRqstBck");
    HttpSession session = request.getSession();
    UICWorkItemBean[] objWrkItmBean = null;
    UICScrPmpWrkItmBean objScrPmpWrkItmBean = null;

    int curIndex = 0;
    try {
        curIndex = Integer.parseInt(request.getParameter(UICDbUtil.CURRENT_INDEX));
        curIndex--;
        if (curIndex < 0) {
            curIndex = 0;
        }
        int startkey = Integer.parseInt(request.getParameter(UICDbUtil.FIRST_KEY));

        UICCollection collection = null;
        collection = (UICCollection) session.getAttribute(UICUtil.COLLECTION);

        //Calling getWorkItemList method to get the work itm list
        collection =
            this.getWorkItemList(request, response, startkey, UICDbUtil.BACKWARD);

        objWrkItmBean = (UICWorkItemBean[]) collection.get(UICUtil.WORK_ITEM_LIST);
        collection.put(UICBusBeanNames.WORKITEM_BEAN_LIST, objWrkItmBean);

        objScrPmpWrkItmBean = new UICScrPmpWrkItmBean();
        objScrPmpWrkItmBean =
            UICPMPWorkItemHelper.convertIntoScrBean(
                collection,
                objScrPmpWrkItmBean,
                curIndex);

        boolean moreRecords =
            ((Boolean) collection.get(UICDbUtil.IS_MORE_RECORDS)).booleanValue();
        if (curIndex == 0 && (!moreRecords)) {
            objScrPmpWrkItmBean.setMoreBackRecords(false);
        } else {
            objScrPmpWrkItmBean.setMoreBackRecords(true);
        }
        objScrPmpWrkItmBean.setMoreRecord(true);
        //store the collection in the session.
        session.setAttribute(UICUtil.COLLECTION, collection);
        request.setAttribute(UICScrBeanNames.SCR_PMP_WORK_ITEM, objScrPmpWrkItmBean);

        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: handlePMPRqstBck");
           displayPage(UICJSPNames.PMT_WRK_ITM, request, response);
        } catch (Exception ex) {
        UICErrorHandler.handleException(
            this.getUserID(request),
            this.getHandleID(request),
            UICUtil.FATAL,
            UICUtil.SYSTEM_ERROR,
            SYSTEM_ERRORCODE,
            "",
            false,
            ex);
    }

}
/**
  * Description         :       This Method is Called when User Click the Next button
  *                                             to get the next work item list.
  * @params                 :   request HttpServletRequest represents Http Request 
object
  * @params                 :   response HttpServletResponse represents Http Response 
object
  * @returns            :   void
  * @throws         :   UICBusinessException represents UIClaims Business exception
  * @Attributes taken from session       :UICCollection collection
  * @Attributes put in the session       :UICCollection collection
  * @Attributes removed from the session :--
  */
private void handlePMPRqstNxt(
    HttpServletRequest request,
    HttpServletResponse response)
    throws UICBusinessException {
    UICErrorHandler.printDebug(
        "Entered Into Method :UICPMPWorkItemServlet:handlePMPRqstNxt");
    int curIndex = 0;
    int lastKey = 0;
    HttpSession session = request.getSession();
    UICWorkItemBean[] objWrkItmBean = null;
    UICScrPmpWrkItmBean objScrPmpWrkItmBean = null;

    try {
        UICCollection collection = null;
        collection = (UICCollection) session.getAttribute(UICUtil.COLLECTION);

        curIndex = Integer.parseInt(request.getParameter(UICDbUtil.CURRENT_INDEX));
        lastKey =
            UICHelperBase.getIntValue(request.getParameter(UICDbUtil.HID_LAST_KEY));

        //Calling getWorkItemList method to get the work itm list
        collection = getWorkItemList(request, response, lastKey, UICDbUtil.FORWARD);
        curIndex++;

        objWrkItmBean = (UICWorkItemBean[]) collection.get(UICUtil.WORK_ITEM_LIST);
        collection.put(UICBusBeanNames.WORKITEM_BEAN_LIST, objWrkItmBean);
        //store the collection in the session
        session.setAttribute(UICUtil.COLLECTION, collection);
        objScrPmpWrkItmBean = new UICScrPmpWrkItmBean();
        objScrPmpWrkItmBean =
            UICPMPWorkItemHelper.convertIntoScrBean(
                collection,
                objScrPmpWrkItmBean,
                curIndex);
        objScrPmpWrkItmBean.setMoreBackRecords(true);

        request.setAttribute(UICScrBeanNames.SCR_PMP_WORK_ITEM, objScrPmpWrkItmBean);


        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: handlePMPRqstNxt");
        displayPage(UICJSPNames.PMT_WRK_ITM, request, response);
    } catch (Exception ex) {
        UICErrorHandler.handleException(
            this.getUserID(request),
            this.getHandleID(request),
            UICUtil.FATAL,
            UICUtil.SYSTEM_ERROR,
            SYSTEM_ERRORCODE,
            "",
            false,
            ex);
    }
}
/**
 * Description          :       This Method is Called when User Click left frame link 
work items for PMP
 * @params                  :   request HttpServletRequest represents Http Request 
object
 * @params                  :   response HttpServletResponse represents Http Response 
object
 * @returns             :   void
 * @param           :   collect UICCollection represents collection
 * @throws          :   IOException Input output exception
 * @throws          :   UICBusinessException represents UIClaims Business exception
 * @throws          :   ServletException Servlet exception
 * @Attributes taken from session       :--
 * @Attributes put in the session       :UICCollection collection
 * @Attributes removed from the session :--
 */
private void handlePmpWorkItm_PMP_004(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collect)
    throws ServletException, IOException, UICBusinessException {

    UICErrorHandler.printDebug(
        "Entered Into Method :UICPMPWorkItemServlet:handlePmpWorkItm_PMP_004");
    HttpSession session = request.getSession();
    UICEvent eventLog = new UICEvent();

    int intCurIndex = 0;
    try {
        UICScrPmpWrkItmBean objScrWrkItmBean = new UICScrPmpWrkItmBean();

        UICTxnInfo txnInfo = (UICTxnInfo) collect.get(UICUtil.TXN_INFO);
        eventLog.logEvent(
            txnInfo,
            "UICPMPWorkItemServlet",
            UICUtil.EVENT_START,
            ": handlePmpWorkItm_PMP_004 Started");
        int wrkItmTypArr[] =
            {
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_TYP45,
                    UICDbUtil.WORK_ITEM_TYPE_CD),
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_TYP46,
                    UICDbUtil.WORK_ITEM_TYPE_CD),
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_TYP47,
                    UICDbUtil.WORK_ITEM_TYPE_CD),
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_TYP48,
                    UICDbUtil.WORK_ITEM_TYPE_CD),
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_TYP49,
                    UICDbUtil.WORK_ITEM_TYPE_CD),
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_TYP50,
                    UICDbUtil.WORK_ITEM_TYPE_CD)};

        int wrkItmStatArr[] =
            {
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_STAT1,
                    UICDbUtil.WORK_ITEM_STAT_CD),
                UICDomainUtil.getKeyForShortDesc(
                    UICDbUtil.PMP_WRK_ITM_STAT2,
                    UICDbUtil.WORK_ITEM_STAT_CD)};

        collect.put(UICUtil.WORK_ITEM_TYPES, wrkItmTypArr);
        collect.put(UICUtil.WRK_ITM_STAT, wrkItmStatArr);
        session.setAttribute(UICUtil.COLLECTION, collect);
        collect = this.getWorkItemList(request, response, 0, UICDbUtil.FORWARD);

        objScrWrkItmBean =
            UICPMPWorkItemHelper.convertIntoScrBean(collect, objScrWrkItmBean, 
intCurIndex);

        request.setAttribute(UICScrBeanNames.SCR_PMP_WORK_ITEM, objScrWrkItmBean);

        eventLog.logEvent(
            txnInfo,
            "UICPMPWorkItemServlet",
            UICUtil.EVENT_END,
            ": handlePmpWorkItm_PMP_004 End");
        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: handlePmpWorkItm_PMP_004");
           displayPage(UICJSPNames.PMT_WRK_ITM, request, response);
        } catch (Exception e) {

        UICErrorHandler.handleException(
            this.getUserID(request),
            this.getHandleID(request),
            UICUtil.FATAL,
            UICUtil.SYSTEM_ERROR,
            SYSTEM_ERRORCODE,
            "",
            false,
            e);

    }
}
/**
 * Description:         :       This Method is Called when User Click Continue button 
in work items list screen.
 * @params                  :   request HttpServletRequest represents Http Request 
object
 * @params                  :   response HttpServletResponse represents Http Response 
object
 * @param           :   collect UICCollection represents collection
 * @returns             :   void
 * @throws          :   UICBusinessException represents UIClaims Business exception
 * @throws          :   IOException Input output exception
 * @throws          :   ServletException Servlet exception
 * @Attributes taken from session       :--
 * @Attributes put in the session       
:UICWorkItemBean,UICClaimantBean,UICScrPmpClmntDtlsBean
 * @Attributes removed from the session :UICWorkItemBean,UICScrPmpClmntDtlsBean
 */
private void handlePmpWorkItmCont_159_CON(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collect)
    throws ServletException, IOException, UICBusinessException {
    UICErrorHandler.printDebug(
        "Entered Into Method :UICPMPWorkItemServlet: handlePmpWorkItmCont_159_CON");
    HttpSession session = request.getSession();
    UICEvent eventLog = new UICEvent();
    UICTxnInfo txnInfo = (UICTxnInfo) collect.get(UICUtil.TXN_INFO);
    try {
        eventLog.logEvent(
            txnInfo,
            "UICPMPWorkItemServlet",
            UICUtil.EVENT_START,
            ": handlePmpWorkItmCont_159_CON Started");
        UICScrPmpWrkItmDtlsBean objScrWrkItmDtlsBean = new UICScrPmpWrkItmDtlsBean();

        objScrWrkItmDtlsBean =
            UICPMPWorkItemHelper.populateFromRequestHandle159_CON(
                request,
                objScrWrkItmDtlsBean);
        UICWorkItemBean objWrkItmBean = new UICWorkItemBean();

        objWrkItmBean =
            UICPMPWorkItemHelper.convertIntoBusBeanHandle159_CON(
                objScrWrkItmDtlsBean,
                collect);
        collect.put(UICBusBeanNames.WORKITEM_BEAN, objWrkItmBean);
        session.setAttribute(
            UICSessionAttributeNames.SESSION_PMP_WORKITEM_BEAN,
            objWrkItmBean);
        UICMissingWarrantBean objMissingWarrantBean = new UICMissingWarrantBean();
        UICWorkDetailsBean objWorkDtl = objWrkItmBean.getWorkDetailBean();
        Integer objRptID = (Integer) objWorkDtl.get("RPT_ID");
        objMissingWarrantBean.setReportID(objRptID.intValue());
        txnInfo.setRootOldTimeStamp(
            UICConcurrencyCheckUtil.getCurrentRootTimeStamp(
                txnInfo,
                objMissingWarrantBean));
        IUICPMPManager remotePMPMgr = UICEJBRemoteFactory.getPMPManagerRemote();
        collect = remotePMPMgr.getMissingPaymentDetailsInCtrlr(collect);
        UICClaimantBean objClaimantBean =
            (UICClaimantBean) collect.get(UICBusBeanNames.CLAIMANT_BEAN);
        //store the claimant business bean in the session
        session.setAttribute(
            UICSessionAttributeNames.SESSION_CLAIMANT_BEAN,
            objClaimantBean);
        UICMissingWarrantBean[] objMissingWarr = 
objClaimantBean.getMissingWarrantArr();

        if (objScrWrkItmDtlsBean
            .getWrkItmTypShort()
            .equals(
                UICHelperBase.getStringValue(
                    UICDomainUtil.getKeyForShortDesc(
                        UICDbUtil.PMP_WRK_ITM_TYP45,
                        UICDbUtil.WORK_ITEM_TYPE_CD)))) {
            UICScrPmpClmntDtlsBean objScrPmpClmntDtlsBean = null;

            objScrPmpClmntDtlsBean =
                UICPMPWorkItemHelper.convertIntoScrBeanHandle159_CON(collect);

            request.setAttribute(
                UICScrBeanNames.SCR_PMP_CLAIMANT_BEAN,
                objScrPmpClmntDtlsBean);
            //store the claimant screen bean in the session
            session.setAttribute(
                UICSessionAttributeNames.SESSION_SCR_PMP_CLAIMANT_BEAN,
                objScrPmpClmntDtlsBean);

            eventLog.logEvent(
                txnInfo,
                "UICPMPWorkItemServlet",
                UICUtil.EVENT_END,
                ": handlePmpWorkItmCont_159_CON End");
            displayPage(UICJSPNames.MISSING_PMT_DASHBOARD, request, response);
        } else
            if (objScrWrkItmDtlsBean
                .getWrkItmTypShort()
                .equals(
                    UICHelperBase.getStringValue(
                        UICDomainUtil.getKeyForShortDesc(
                            UICDbUtil.PMP_WRK_ITM_TYP46,
                            UICDbUtil.WORK_ITEM_TYPE_CD)))) {

                eventLog.logEvent(
                    txnInfo,
                    "UICPMPWorkItemServlet",
                    UICUtil.EVENT_END,
                    ": handlePmpWorkItmCont_159_CON End");
                handleResponseFor159_CON_DisplayAffidavitResponse(request, response, 
collect);
            } else
                if (objScrWrkItmDtlsBean
                    .getWrkItmTypShort()
                    .equals(
                        UICHelperBase.getStringValue(
                            UICDomainUtil.getKeyForShortDesc(
                                UICDbUtil.PMP_WRK_ITM_TYP47,
                                UICDbUtil.WORK_ITEM_TYPE_CD)))) {

                    eventLog.logEvent(
                        txnInfo,
                        "UICPMPWorkItemServlet",
                        UICUtil.EVENT_END,
                        ": handlePmpWorkItmCont_159_CON End");
                    handleResponseFor159_CON_DisplayDisplayRedWarrResponse(
                        request,
                        response,
                        collect);

                } else
                    if (objScrWrkItmDtlsBean
                        .getWrkItmTypShort()
                        .equals(
                            UICHelperBase.getStringValue(
                                UICDomainUtil.getKeyForShortDesc(
                                    UICDbUtil.PMP_WRK_ITM_TYP48,
                                    UICDbUtil.WORK_ITEM_TYPE_CD)))) {

                        eventLog.logEvent(
                            txnInfo,
                            "UICPMPWorkItemServlet",
                            UICUtil.EVENT_END,
                            ": handlePmpWorkItmCont_159_CON End");

                        handleResponseFor159_CON_DisplayDecisionMissingPmt(request, 
response, collect);
                    } else
                        if (objScrWrkItmDtlsBean
                            .getWrkItmTypShort()
                            .equals(
                                UICHelperBase.getStringValue(
                                    UICDomainUtil.getKeyForShortDesc(
                                        UICDbUtil.PMP_WRK_ITM_TYP49,
                                        UICDbUtil.WORK_ITEM_TYPE_CD)))) {

                            eventLog.logEvent(
                                txnInfo,
                                "UICPMPWorkItemServlet",
                                UICUtil.EVENT_END,
                                ": handlePmpWorkItmCont_159_CON End");
                            handleResponseFor159_CON_DisplayCheckTwars(request, 
response, collect);
                        } else
                            if (objScrWrkItmDtlsBean
                                .getWrkItmTypShort()
                                .equals(
                                    UICHelperBase.getStringValue(
                                        UICDomainUtil.getKeyForShortDesc(
                                            UICDbUtil.PMP_WRK_ITM_TYP50,
                                            UICDbUtil.WORK_ITEM_TYPE_CD)))) {

                                eventLog.logEvent(
                                    txnInfo,
                                    "UICPMPWorkItemServlet",
                                    UICUtil.EVENT_END,
                                    ": handlePmpWorkItmCont_159_CON End");
                                
handleResponseFor159_CON_DisplayTerminateMissingPmt(request, response, collect);
                            }
        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: 
handlePmpWorkItmCont_159_CON");

    } catch (Exception e) {

        //Remove the Attributes if there is an exception
        
session.removeAttribute(UICSessionAttributeNames.SESSION_SCR_PMP_CLAIMANT_BEAN);
        session.removeAttribute(UICSessionAttributeNames.SESSION_PMP_WORKITEM_BEAN);
        session.removeAttribute(UICSessionAttributeNames.SESSION_PMP_WORKITEM_BEAN);
        UICErrorHandler.handleException(
            this.getUserID(request),
            this.getHandleID(request),
            UICUtil.FATAL,
            UICUtil.SYSTEM_ERROR,
            SYSTEM_ERRORCODE,
            "",
            false,
            e);

    }

}
/**
  * Description         :       This Method is Called when User Click Close button in 
work items list screen.
  * @param              :   request HttpServletRequest represents Http Servlet Request 
object
  * @param          :   response HttpServletResponse represents Http Servlet Response 
object
  * @returns            :   void
  * @throws         :   IOException Input output exception
  * @throws         :   ServletException Servlet exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :--
  * @Attributes removed from the session :--
  */
private void handlePmpWrkItmClose_159_CLO(
    HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    UICErrorHandler.printDebug(
        "Entered Into Method :UICPMPWorkItemServlet: handlePmpWrkItmClose_159_CLO");

    UICErrorHandler.printDebug(
        "Returning From Method :UICPMPWorkItemServlet: handlePmpWrkItmClose_159_CLO");
    displayPage(UICJSPNames.HOMEPAGE_JSP, request, response);
    }
/**
  * Description         :       This Method is used for displaying Affidavit response 
JSP with details
  *                                      when user clicks Continue button from work 
item screens.
  * @param          :   request HttpServletRequest represents Http Servlet Request 
object
  * @param          :   response HttpServletResponse represents Http Servlet Response 
object
  * @param          :   collect UICCollection represents collection
  * @returns            :   void
  * @throws         :   Exception General exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :--
  * @Attributes removed from the session :--
  */
private void handleResponseFor159_CON_DisplayAffidavitResponse(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collection)
    throws Exception {
    try {
        UICErrorHandler.printDebug(
            "Entered Into Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayAffidavitResponse");
        UICScrPmpClmntDtlsBean scrPmpClaimant = new UICScrPmpClmntDtlsBean();
        UICClaimantBean objClaimant =
            (UICClaimantBean) collection.get(UICBusBeanNames.CLAIMANT_BEAN);
        scrPmpClaimant =
            UICPMPWorkItemHelper.convertIntoScreenBean_159_CON_AffidavitResponse(
                objClaimant);
        HttpSession session = request.getSession();

        //Store the screen bean in the session
        session.setAttribute(
            UICSessionAttributeNames.SESSION_SCR_PMP_CLAIMANT_BEAN,
            scrPmpClaimant);

        //Set the screen bean in the request
        request.setAttribute(UICScrBeanNames.SCR_PMP_CLAIMANT_BEAN, scrPmpClaimant);
        //Display the page

        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayAffidavitResponse");
        displayPage(UICJSPNames.PMP_AFFIDAVIT_RESPONSE_PAGE, request, response);
    } catch (Exception exp) {
        throw exp;
    }
}
/**
  * Description         :       This Method is used for displaying Check Twars JSP 
with details
  *                                             when user clicks Continue button after 
selecting Twars workitem
  *                                     :       from work item screens.
  * @param          :   request HttpServletRequest represents Http Servlet Request 
object
  * @param          :   response HttpServletResponse represents Http Servlet Response 
object
  * @param          :   collect UICCollection represents collection
  * @returns            :   void
  * @throws         :   Exception General exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :--
  * @Attributes removed from the session :--
  */

private void handleResponseFor159_CON_DisplayCheckTwars(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collection)
    throws Exception {
    HttpSession session = request.getSession();
    try {
        UICErrorHandler.printDebug(
            "Entered Into Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayCheckTwars");
        UICScrPmpTerminateDtlsBean objScrTerminateBean = null;

        objScrTerminateBean =
            UICPMPWorkItemHelper.convertIntoScrBeanHandleCheck_TWARS(collection);

        request.setAttribute(
            UICScrBeanNames.SCR_PMP_TERMINATE_BEAN,
            objScrTerminateBean);

        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayCheckTwars");
        displayPage(UICJSPNames.PMP_CHECK_TWARS, request, response);
    } catch (Exception exp) {
        throw exp;
    }
}
/**
  * Description         :       This Method is used for displaying decision missing 
payment JSP with details
  *                                             when user clicks Continue button after 
selecting decision workitem
  *                                     :       from work item screens.
  * @param          :   request HttpServletRequest represents Http Servlet Request 
object
  * @param          :   response HttpServletResponse represents Http Servlet Response 
object
  * @param          :   collect UICCollection represents collection
  * @returns            :   void
  * @throws         :   Exception General exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :UICScrPmpClmntDtlsBean
  * @Attributes removed from the session :--
  */

private void handleResponseFor159_CON_DisplayDecisionMissingPmt(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collection)
    throws Exception {
    HttpSession session = request.getSession();
    try {
        UICErrorHandler.printDebug(
            "Entered Into Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayDecisionMissingPmt");
        UICScrPmpClmntDtlsBean objScrPmpClmntDtlsBean = null;
        objScrPmpClmntDtlsBean =
            
UICPMPWorkItemHelper.convertIntoScrBeanHandle164_Decision_Screen(collection);
        //store the claimant bean in the session.
        session.setAttribute(
            UICSessionAttributeNames.SESSION_SCR_PMP_CLAIMANT_BEAN,
            objScrPmpClmntDtlsBean);
        request.setAttribute(
            UICScrBeanNames.SCR_PMP_CLAIMANT_BEAN,
            objScrPmpClmntDtlsBean);

        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayDecisionMissingPmt");
        displayPage(UICJSPNames.PMP_DECISION_MISSING_PMT, request, response);
    } catch (Exception exp) {
        UICErrorHandler.printDebug(
            "Exception Inside handleResponseFor159_CON_DisplayDecisionMissingPmt");
        throw exp;
    }
}
/**
  * Description         :       This Method is used for displaying Reedemed warrant 
response JSP with details
  *                                             when user clicks Continue button after 
selecting Redwarr resp work item.
  *                                     :       from work item screens.
  * @param          :   request HttpServletRequest represents Http Servlet Request 
object
  * @param          :   response HttpServletResponse represents Http Servlet Response 
object
  * @param          :   collect UICCollection represents collection
  * @returns            :   void
  * @throws         :   Exception  General exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :UICScrPmpClmntDtlsBean
  * @Attributes removed from the session :--
  */

private void handleResponseFor159_CON_DisplayDisplayRedWarrResponse(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collection)
    throws Exception {
    try {
        HttpSession session = request.getSession();

        UICErrorHandler.printDebug(
            "Entered Into Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayDisplayRedWarrResponse");
        UICScrPmpClmntDtlsBean scrPmpClaimant = new UICScrPmpClmntDtlsBean();
        UICClaimantBean objClaimant =
            (UICClaimantBean) collection.get(UICBusBeanNames.CLAIMANT_BEAN);

        //Convert the Bus bean in to screen bean
        scrPmpClaimant =
            
UICPMPWorkItemHelper.convertIntoScreenBean_159_CON_RedWarResponse(objClaimant);

        //Store the screen bean in the session. Show the same page
        //in case of errors
        session.setAttribute(
            UICSessionAttributeNames.SESSION_SCR_PMP_CLAIMANT_BEAN,
            scrPmpClaimant);
        request.setAttribute(UICScrBeanNames.SCR_PMP_CLAIMANT_BEAN, scrPmpClaimant);

        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayDisplayRedWarrResponse");
        displayPage(UICJSPNames.PMP_REDEEMED_WARRANT_RESPONSE_PAGE, request, response);
    } catch (Exception exp) {
        throw exp;
    }
}
/**
  * Description         :       This Method is used for displaying Terminate Missing 
Payment JSP with details
  *                                             when user clicks Continue button after 
selecting Terminate work item.
  *                                     :       from work item screens.
  * @param          :   request HttpServletRequest represents Http Servlet Request 
object
  * @param          :   response HttpServletResponse represents Http Servlet Response 
object
  * @param          :   collect UICCollection represents collection
  * @returns            :   void
  * @throws         :   Exception General exception
  * @Attributes taken from session       :--
  * @Attributes put in the session       :UICScrPmpTerminateDtlsBean
  * @Attributes removed from the session :--
  */

private void handleResponseFor159_CON_DisplayTerminateMissingPmt(
    HttpServletRequest request,
    HttpServletResponse response,
    UICCollection collection)
    throws Exception {
    HttpSession session = request.getSession();
    try {
        UICErrorHandler.printDebug(
            "Entered Into Method :UICPMPWorkItemServlet: 
handleResponseFor159_CON_DisplayTerminateMissingPmt");
        UICScrPmpTerminateDtlsBean objScrTerminateBean = null;

        objScrTerminateBean =
            
UICPMPWorkItemHelper.convertIntoScrBeanHandle158_Terminate_Screen(collection);

        request.setAttribute(
            UICScrBeanNames.SCR_PMP_TERMINATE_BEAN,
            objScrTerminateBean);
        //store the terminate screen bean in the session.
        session.setAttribute(
            UICSessionAttributeNames.SESSION_SCR_PMP_TERMINATE_BEAN,
            objScrTerminateBean);

        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: getWorkItemList");
        displayPage(UICJSPNames.PMP_TERMINATE_REQ, request, response);
    } catch (Exception exp) {
        throw exp;
    }
}
/**
 * Initializes the servlet.
 */
public void init()
{}
/**
 * Description  :This method isthe entry for any http request and directs to 
approprite handle IDs.
 * @param       : request HttpServletRequest represents Http Servlet Request object
 * @param       : response HttpServletResponse represents Http Servlet Response object
 * @returns     : void
 * @throws      : ServletException Servlet exception
 * @throws      : IOException Input Output exception
 * @Attributes taken from session       :UICTxnInfo,UICCollection
 * @Attributes put in the session       :UICCollection collection.
 * @Attributes removed from the session :--
 */

public void service(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    UICErrorHandler.printDebug("Entered Into Method :UICPMPWorkItemServlet: service");
    UICEvent eventLog = null;
    UICTxnInfo initialTxnInfo = null;

    try {

        if (!isEntryAllowed(request, response)) {
            return;
        }

        HttpSession session = request.getSession();
        initialTxnInfo = this.getInitialTxnInfo(request);

        UICCollection collect = null;

        eventLog = new UICEvent();
        eventLog.logEvent(
            initialTxnInfo,
            "UICPMPWorkItemServlet",
            UICUtil.EVENT_START,
            "UICPMPWorkItemServlet: Service Started");
        // Check for Handle ID's.

        //Set the root table to TCLM_MISS_WARR_RPT for concurrency
        initialTxnInfo.setRootTable(UICDbUtil.PMP_TCLM_MISS_WARR_RPT);

        String handleID = request.getParameter(UICUtil.HandleID);
        if (handleID.equals("PMP_004")) {
            collect = new UICCollection();
        } else {
            collect = (UICCollection) session.getAttribute(UICUtil.COLLECTION);
            if (collect == null)
                collect = new UICCollection();
        }
        collect.put(UICUtil.TXN_INFO, initialTxnInfo);
        session.setAttribute(UICUtil.COLLECTION, collect);

        if (request.getParameter(UICUtil.HandleID) != null) {

            UICErrorHandler.printDebug("Handle ID is" + handleID);
            if ((handleID.equals("PMP_004"))
                || (handleID.equals("160_CAN"))
                || (handleID.equals("165_CAG"))
                || (handleID.equals("161_CAN"))
                || (handleID.equals("162_CAN"))
                || (handleID.equals("163_CAN"))
                || (handleID.equals("164_CAN"))
                || (handleID.equals("158_CAN"))
                || (handleID.equals("165_PMD"))
                || (handleID.equals("165_TER"))
                || (handleID.equals("165_RWS"))
                || (handleID.equals("165_TWA"))
                || (handleID.equals("165_SPI"))
                || (handleID.equals("165_WCN"))
                || (handleID.equals("165_AFS"))
                || (handleID.equals("162_CLO"))) {
                handlePmpWorkItm_PMP_004(request, response, collect);
                return;
            } else
                if (handleID.equals("159_CON")) {

                    handlePmpWorkItmCont_159_CON(request, response, collect);
                    UICTxnInfo txn = (UICTxnInfo) 
session.getAttribute(UICUtil.TXN_INFO);
                    return;
                } else
                    if (handleID.equals("159_CLO")) {

                        handlePmpWrkItmClose_159_CLO(request, response);
                        return;
                    } else
                        if (handleID.equals("160_CAN")) {

                            handleCancelWarrDtls_160_CAN(request, response, collect);
                            return;
                        } else
                            if (handleID.equals("159_NEX")) {

                                handlePMPRqstNxt(request, response);
                                return;
                            } else
                                if (handleID.equals("159_BAK")) {

                                    handlePMPRqstBck(request, response);
                                    return;
                                } else {
                                    UICErrorHandler.handleException(
                                        this.getUserID(request),
                                        this.getHandleID(request),
                                        UICUtil.FATAL,
                                        UICUtil.APPLICATION_ERROR,
                                        CONN_ERRORCODE,
                                        "",
                                        false,
                                        this.getErrMessageFor(CONN_ERRORCODE, 
request));
                                }

        } else {
            UICErrorHandler.handleException(
                this.getUserID(request),
                this.getHandleID(request),
                UICUtil.FATAL,
                UICUtil.APPLICATION_ERROR,
                CONN_ERRORCODE,
                "",
                false,
                this.getErrMessageFor(CONN_ERRORCODE, request));
        }
        UICErrorHandler.printDebug(
            "Returning From Method :UICPMPWorkItemServlet: service");
    } // end of try
    catch (UICBusinessException bex) {

        throwErrorPage(request, response, bex.getMessage());

    } catch (Exception ex) {

        UICErrorHandler.logError(
            this.getUserID(request),
            this.getHandleID(request),
            UICUtil.FATAL,
            UICUtil.SYSTEM_ERROR,
            SYSTEM_ERRORCODE,
            "",
            false,
            ex);

        throwErrorPage(
            request,
            response,
            this.getErrMessageFor(SYSTEM_ERRORCODE, request));
    } finally {
        eventLog.logEvent(
            initialTxnInfo,
            "UICPMPWorkItemServlet",
            UICUtil.EVENT_END,
            "UICPMPWorkItemServlet: Service End");
    }
}
}


Title: Client File Maintenance Work Item

File Maintenance

Work Item

<% UICScrWorkItemListBean[] scrWrkItmLstBean = scrWorkItmBean.getWorkItemObject();%> <% String errorMsg= (String)request.getAttribute(UICUtil.ERROR_MSG); if(errorMsg!=null) { %> <% } %>

<%=errorMsg%>

<% int buttonCount = 0; if(scrWorkItmBean.isMoreBackRecords()) { buttonCount++ ; %> <% } else { %> <% } if(scrWorkItmBean.isMoreRecord()) { buttonCount++ ; %> <% } else { %> <% } %>
 PreviousNext
<% if(scrWrkItmLstBean!=null) { %> <% for( int count=0; count <% } } %>
# SSN Claimant Name Work Item Type
Select This <%=scrWrkItmLstBean [count].getSSN1()%>-<%=scrWrkItmLstBean[count].getSSN2()%>-<%=scrWrkItmLstBean[count].getSSN3()%> <%=scrWrkItmLstBean [count].getClaimantName()%> <%=scrWrkItmLstBean [count].getWorkItemType()%>
Continue Close Help
"> "> "> ">
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to