Solved

Seeeion in jsp

Posted on 2004-04-20
7
231 Views
Last Modified: 2010-04-01
I have to store inserted data in form and when user hits back the values inserted should be printed.
how to do it.
  i have done like this mbut it is not workinhg help...

<%@ include file="/common/wrappertop.jsp" %>
<%@ include file="/common/subwrappertop.jsp" %>
<%@ page import="com.xldynamics.mol.loanlink.session.RefDefault" %>
<%
    RefDefault refdefault;
    refdefault = (RefDefault)(session.getAttribute("refdefault"));

      String checkLoanType="";
    String checkLoanTerm="";
      String moreImportant="";
      String interestOnly="";
      String hundredPercentFinancing="";
      String propertyOccCode="";
      String estimatePropertyValue="";
      String goal="";
      String sLoadFromSessObj = "NO";
      
      if (refdefault != null){
              checkLoanType=refdefault.getLoanType();
              checkLoanTerm = refdefault.getLoanTerm();
              moreImportant = refdefault.getMoreImportant();
              interestOnly = refdefault.getInterestOnly();
              hundredPercentFinancing = refdefault.getHundredFinancing();
              propertyOccCode = refdefault.getPropertyOccCode();
              estimatePropertyValue = refdefault.getEstimatePropertyValue();
              goal=refdefault.getGoal();
            sLoadFromSessObj = "YES";
      }
      else
      {
              sLoadFromSessObj = "NO";
      }
%>
<style type="text/css">
<!--
#idCurrentBalance {display:none;}
#idCashOut {display:none;}
#idFirstSecond {display:none;}
#idAfterHomePurchase {display:none;}
#idAfterHomePurchaseEquity {display:none;}

#idLowest {display:none;}
#idLeast {display:none;}

#idSecondMortgageLoan {display:none;}
#idSecondMortgageLoan4 {display:none;}
//-->
</style>

<script language="JavaScript">
<!--
ns4 = ( document.layers )? true:false
ie4 = ( document.all ) ? true:false

function DisplayField(fldValue)
{
   
      if(document.all)
      {
      document.all.idLowest.style.display="none";
      document.all.idLeast.style.display="none";  
     
      if (fldValue == "Lowest Monthly Payment")
      {
                  document.all.idLowest.style.display="block";
         document.all.idLeast.style.display="none";  
      } else if (fldValue == "Least amount of cash out of my pocket") {
         document.all.idLeast.style.display="block";
         document.all.idLowest.style.display="none";
      }  
      }
}

function DisplayRefinanceGoal(fldValue)
{
      if(document.all)
      {
      document.all.idCurrentBalance.style.display="none";
      document.all.idCashOut.style.display="none";
      document.all.idFirstSecond.style.display="none";
      document.all.idAfterHomePurchase.style.display="none";
      document.all.idAfterHomePurchaseEquity.style.display="none";
     
      if (fldValue == "1")
         document.all.idCurrentBalance.style.display="block";
      else if (fldValue == "2")
         document.all.idCashOut.style.display="block";
      else if (fldValue == "3")
         document.all.idFirstSecond.style.display="block";
      else if (fldValue == "4")
         document.all.idAfterHomePurchase.style.display="block";
      else if (fldValue == "5")
         document.all.idAfterHomePurchaseEquity.style.display="block";                      
      }
}

function checkLoan3()
{
   document.all.idSecondMortgageLoan.style.display="none";  
     
      if(document.all)
      {  
      document.all.idSecondMortgageLoan.style.display="block";    
   }
}

function checkLoan4()
{
   document.all.idSecondMortgageLoan4.style.display="none";  
     
      if(document.all)
      {  
      document.all.idSecondMortgageLoan4.style.display="block";    
   }
}

function checkLoanType(checkValue)
{
   if (checkValue == true)
      document.REFINANCE.LoanType.selectedIndex=0
}

function selectLoanType(fieldName)
{
   if (fieldName.selectedIndex != 0)
      document.REFINANCE.LoanTypeNotSure.checked = false
}

arrTextVal[1] =      new Array('','','','','')
arrTextVal[2] =      new Array('','LoanTerm','checkLoanTerm','How long do you think you will have this loan?','1,0,0')
arrTextVal[3] =      new Array('','MoreImportant','checkMoreImportant','What is more important to you?','1,0,0')
arrTextVal[4] =      new Array('','PropertyOccCode','checkPropertyOccCode','This will be your:','1,0,0')
arrTextVal[5] =      new Array('','EstimatePropertyValue','checkEstimatePropertyValue','What is the estimated value of your home?','1,1,0')
arrTextVal[6] =      new Array('','','','','')
arrTextVal[7] =      new Array('','','','','')
arrTextVal[8] =      new Array('','','','','')
arrTextVal[9] =      new Array('','','','','')
arrTextVal[10] =      new Array('','','','','')

function validateLoan(formName)
{


   arrTextVal[1][1]  = ""
   arrTextVal[1][2]  = ""
   arrTextVal[1][3]  = ""
   arrTextVal[1][4]  = ""
   
   arrTextVal[6][1]  = ""
   arrTextVal[6][2]  = ""
   arrTextVal[6][3]  = ""
   arrTextVal[6][4]  = ""
   
   arrTextVal[7][1]  = ""
   arrTextVal[7][2]  = ""
   arrTextVal[7][3]  = ""
   arrTextVal[7][4]  = ""
   
   arrTextVal[8][1]  = ""
   arrTextVal[8][2]  = ""
   arrTextVal[8][3]  = ""
   arrTextVal[8][4]  = ""
   
   arrTextVal[9][1]  = ""
   arrTextVal[9][2]  = ""
   arrTextVal[9][3]  = ""
   arrTextVal[9][4]  = ""
   
   arrTextVal[10][1]  = ""
   arrTextVal[10][2]  = ""
   arrTextVal[10][3]  = ""
   arrTextVal[10][4]  = ""
   
   if (formName.LoanTypeNotSure.checked == false)
   {
      arrTextVal[1][1] = "LoanType"     // field name
      arrTextVal[1][2] = "checkLoanType"    // id name
      arrTextVal[1][3] = "I know what type of loan I want"   // text
      arrTextVal[1][4] = "1,0,0"                   // required, number, length,
   }

   if (formName.MoreImportant.selectedIndex != 0)
   {

      if (formName.MoreImportant.options[formName.MoreImportant.selectedIndex].value == "Lowest Monthly Payment")
      {
         if (formName.InterestOnly[0].checked == false && formName.InterestOnly[1].checked == false)
         {
            errorMsg += "- 'Would you like to consider interest only loan choices? \n"
            valField("checkInterestOnly",1)
         }
      }
     
       if (formName.MoreImportant.options[formName.MoreImportant.selectedIndex].value == "Least amount of cash out of my pocket")
      {
         if (formName.HundredPercentFinancing[0].checked == false && formName.HundredPercentFinancing[1].checked == false)
         {
            errorMsg += "- 'Would you like 100% financing loan choice? \n"
            valField("checkHundredPercentFinancing",1)
         }
      }
   }
   
   // to refinance my first mortgage at the current balance
   if (formName.Goal[0].checked == true)
   {
      valField("checkCurrentLoanProgram_1",0)
      if (formName.CurrentLoanProgram_1.selectedIndex == 0)
      {
         errorMsg += "- 'What is your current loan program  \n"
         valField("checkCurrentLoanProgram_1",1)
      }
     
      arrTextVal[6][1]  = "CurrentBalance_1"
      arrTextVal[6][2]  = "checkCurrentBalance_1"
      arrTextVal[6][3]  = "What is your current balance "
      arrTextVal[6][4]  = "1,1,0"
     
      arrTextVal[7][1]  = "CurrentRate_1"
      arrTextVal[7][2]  = "checkCurrentRate_1"
      arrTextVal[7][3]  = "What is your current rate"
      arrTextVal[7][4]  = "1,1,0"
     
   } else  if (formName.Goal[1].checked == true) {
   
      valField("checkCurrentLoanProgram_2",0)
      if (formName.CurrentLoanProgram_2.selectedIndex == 0)
      {
         errorMsg += "- 'What is your current loan program  \n"
         valField("checkCurrentLoanProgram_2",1)
      }
     
      arrTextVal[6][1]  = "CurrentFirstMortgageBalance_2"
      arrTextVal[6][2]  = "checkCurrentFirstMortgageBalance_2"
      arrTextVal[6][3]  = "What is your current first mortgage balance "
      arrTextVal[6][4]  = "1,1,0"
     
      arrTextVal[7][1]  = "CurrentRate_2"
      arrTextVal[7][2]  = "checkCurrentRate_2"
      arrTextVal[7][3]  = "What is your current rate "
      arrTextVal[7][4]  = "1,1,0"
     
      arrTextVal[8][1]  = "CashOut_2"
      arrTextVal[8][2]  = "checkCashOut_2"
      arrTextVal[8][3]  = "How much cash do you want?"
      arrTextVal[8][4]  = "1,1,0"
   
   } else  if (formName.Goal[2].checked == true) {
   
      valField("checkCurrentLoanProgram_3",0)
      if (formName.CurrentLoanProgram_3.selectedIndex == 0)
      {
         errorMsg += "- 'What is your current FIRST loan program  \n"
         valField("checkCurrentLoanProgram_3",1)
      }
     
      arrTextVal[6][1]  = "CurrentFirstMortgageBalance_3"
      arrTextVal[6][2]  = "checkCurrentFirstMortgageBalance_3"
      arrTextVal[6][3]  = "What is your current First mortgage balance"
      arrTextVal[6][4]  = "1,1,0"
     
      arrTextVal[7][1]  = "CurrentFirstMortgageRate_3"
      arrTextVal[7][2]  = "checkCurrentFirstMortgageRate_3"
      arrTextVal[7][3]  = "What is your current First Mortgage rate"
      arrTextVal[7][4]  = "1,1,0"
     
      valField("checkSecondMortgage_3",0)
      if (formName.SecondMortgage_3[0].checked == false && formName.SecondMortgage_3[1].checked == false)
      {
         errorMsg += "- 'My 2nd Mortgage is a:  \n"
         valField("checkSecondMortgage_3",1)
      }
     
      if (formName.SecondMortgage_3[1].checked == true)
      {
         arrTextVal[8][1]  = "SecondLoanTerm_3"
         arrTextVal[8][2]  = "checkSecondLoanTerm_3"
         arrTextVal[8][3]  = "LOAN - What is the Term of the 2nd Loan?"
         arrTextVal[8][4]  = "1,1,0"
      }
     
      arrTextVal[9][1]  = "SecondBalance_3"
      arrTextVal[9][2]  = "checkSecondBalance_3"
      arrTextVal[9][3]  = "What is the balance on your 2nd"
      arrTextVal[9][4]  = "1,1,0"
     
      arrTextVal[10][1]  = "SecondMortgageRate_3"
      arrTextVal[10][2]  = "checkSecondMortgageRate_3"
      arrTextVal[10][3]  = "What is your 2nd Mortgage Rate"
      arrTextVal[10][4]  = "1,1,0"
     
   } else  if (formName.Goal[3].checked == true) {   //to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)
   
      valField("checkFirstLoanProgram_4",0)
      if (formName.FirstLoanProgram_4.selectedIndex == 0)
      {
         errorMsg += "- 'What is your current FIRST loan program \n"
         valField("checkFirstLoanProgram_4",1)
      }
     
     
      arrTextVal[6][1]  = "FirstMortgageBalance_4"
      arrTextVal[6][2]  = "checkFirstMortgageBalance_4"
      arrTextVal[6][3]  = "What is your current First mortgage balance "
      arrTextVal[6][4]  = "1,1,0"
     
      arrTextVal[7][1]  = "FirstMortgageRate_4"
      arrTextVal[7][2]  = "checkFirstMortgageRate_4"
      arrTextVal[7][3]  = "What is your current First Mortgage rate"
      arrTextVal[7][4]  = "1,1,0"
     
       valField("checkSecondMortgage_4",0)
      if (formName.SecondMortgage_4[0].checked == false && formName.SecondMortgage_4[1].checked == false)
      {
         errorMsg += "- 'My 2nd Mortgage is a:  \n"
         valField("checkSecondMortgage_4",1)
      }
         
      if (formName.SecondMortgage_4[1].checked == true)
      {
         arrTextVal[8][1]  = "SecondLoanTerm_4"
         arrTextVal[8][2]  = "checkSecondLoanTerm_4"
         arrTextVal[8][3]  = "LOAN - What is the Term of the 2nd Loan?"
         arrTextVal[8][4]  = "1,1,0"
      }

      arrTextVal[9][1]  = "SecondBalance_4"
      arrTextVal[9][2]  = "checkSecondBalance_4"
      arrTextVal[9][3]  = "What is the balance on your Second"
      arrTextVal[9][4]  = "1,1,0"
     
      arrTextVal[10][1]  = "secondMortgageRate_4"
      arrTextVal[10][2]  = "checksecondMortgage_4"
      arrTextVal[10][3]  = "What is your second Mortgage Rate"
      arrTextVal[10][4]  = "1,1,0"
     
      var vLoanTermYr_4 = formName.LoanTermYr_4.value
      var vLoanTermMo_4 = formName.LoanTermMo_4.value
     
      valField("checkLoanTerm_4",0)
      if (trim(vLoanTermYr_4) == "" && trim(vLoanTermMo_4) == "")
      {
         errorMsg += "- 'How long have you had this loan  \n"
         valField("checkLoanTerm_4",1)
      }
     
      if (trim(vLoanTermYr_4) !="")
      {
         valField("checkLoanTerm_4",0)
        if (isNumber("How long have you had this loan", vLoanTermYr_4) == false)
            valField("checkLoanTerm_4",1)
      }
     
      if (trim(vLoanTermMo_4) !="")
      {
         valField("checkLoanTerm_4",0)
        if (isNumber("How long have you had this loan", vLoanTermMo_4) == false)
            valField("checkLoanTerm_4",1)
      }
     
     
   } else  if (formName.Goal[4].checked == true) {
      valField("checkFirstLoanProgram_5",0)
      if (formName.FirstLoanProgram_5.selectedIndex == 0)
      {
         errorMsg += "- 'What is your current FIRST loan program \n"
         valField("checkFirstLoanProgram_5",1)
      }
     
      arrTextVal[6][1]  = "FirstMortgageBalance_5"
      arrTextVal[6][2]  = "checkFirstMortgageBalance_5"
      arrTextVal[6][3]  = "What is your current first mortgage balance "
      arrTextVal[6][4]  = "1,1,0"
     
      arrTextVal[7][1]  = "CurrentRate_5"
      arrTextVal[7][2]  = "checkCurrentRate_5"
      arrTextVal[7][3]  = "What is your current rate"
      arrTextVal[7][4]  = "1,1,0"
     
      arrTextVal[8][1]  = "SecondEquityLineBalance_5"
      arrTextVal[8][2]  = "checkSecondEquityLineBalance_5"
      arrTextVal[8][3]  = "What is your second/home equity line balance"
      arrTextVal[8][4]  = "1,1,0"
     
   } else {
      valField("checkGoal",0)
      errorMsg += "- 'MY Refinance Loan Goal Is: \n"
         valField("checkGoal",1)
   }
   
   

   return genValidate(formName)
}
    function values(){
      if("<%=sLoadFromSessObj%>"=="YES"){
            document.formName.LoanType.value= "<%= checkLoanType %>";
            document.formName.LoanTerm.value= "<%= checkLoanTerm %>";
            document.formName.InterestOnly.value= "<%= interestOnly %>";
            document.formName.HundredFinancing.value= "<%= hundredPercentFinancing %>";
            if(document.formName.InterestOnly.value == "null")
            {
                  if(document.formName.HundredFinancing.value=="Y")
                  document.formName.HundredFinancing[0].checked=true;
                  else
                  document.formName.HundredFinancing[1].checked=true;

            }
            else
            {
                  if(document.formName.InterestOnly.value=="Y")
                  document.formName.InterestOnly[0].checked=true;
                  else
                  document.formName.InterestOnly[1].checked=true;
            }
            propertyOccCodeValue ="<%= propertyOccCode %>" ;
            propertyOccCodeObj= document.form1.PropertyOccCode;
            estimatePropertyValue="<%= estimatePropertyValue %>" ;
            estimatePropertyValueObj= document.form1.EstimatePropertyValue;
            
            moreImportant="<%= moreImportant %>" ;
            moreImportantObj=  document.formName.MoreImportant;
            Goal="<%=goal%>";
            
            setDropDownValues(propertyOccCodeObj, propertyOccCodeValue);
            setDropDownValues(estimatePropertyValueObj, estimatePropertyValue);
            setDropDownValues(moreImportantObj, moreImportant);
            DisplayField(moreImportant);
      }
}

//-->
</script>
<center>
<br>
<div style="text-align:center;font-size:16px;font-weight:bold;">Instant Loan Advisor<br>Refinance</div>
<br>
<form name="REFINANCE" action="pricingmatrix.jsp" method="post" onSubmit="return validateLoan(this)">
<input type="hidden" name="SessId" value="{XTEXT_SessId}"> <input type="hidden" name="FormId" value="{XTEXT_FormId}"> <input type="hidden" name="ObjectId" value="{XTEXT_ObjectId}">
<table border="0" cellpadding="7" cellspacing="0">
   <tr>
      <td class="formName" colspan="3">Do you know what type of loan you want?</td>
   </tr>
   <tr>
      <td class="formName" id="checkLoanType">I know what type of loan I want</td>
      <td class="formValue">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formValue">
                  <select NAME="LoanType" size="1" onChange="selectLoanType(this)">
                                    <option selected value="">Please Select One</option>
                                    <option  value="30yr Fixed">30yr Fixed</option>
                     <option  value="15 Year Fixed">15 Year Fixed</option>
                                    <option  value="3/1 ARM">3/1 ARM</option>
                                    <option  value="5/1 ARM">5/1 ARM</option>
                     <option  value="7/1 ARM">7/1 ARM</option>
                                    <option  value="Other">Other</option>
                              </select>  
                  <br><input type="checkbox" name="LoanTypeNotSure" value="1" onClick="checkLoanType(this.checked)">I am not sure what loan I want, please help me select the best option.
                  </td>
               </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td class="formName" id="checkLoanTerm">How long do you think you will have this loan?</td>
      <td class="formValue">
            <select NAME="LoanTerm" size="1">
                              <option  value="">Please Choose One</option>
                              <option  value="0-3 Years">0-3 Years</option>
                              <option  value="4-7 Years">4-7 Years</option>
                              <option  value="8 Years or Longer">8 Years or Longer</option>
                        </select>
      </td>
   </tr>
   <tr>
      <td class="formName" id="checkMoreImportant">What is more important to you? </td>
      <td class="formValue">
            <select NAME="MoreImportant" size="1"  onChange="DisplayField(this.value)">
                              <option value="">Please Choose One</option>
                              <option  value="Lowest Monthly Payment">Lowest Monthly Payment</option>
                              <option  value="Least amount of cash out of my pocket">Least amount of cash out of my pocket</option>
                              <option  value="Both Lowest Payment & Least amount of cash">Both Lowest Payment & Least amount of cash</option>
                        </select>
      </td>
   </tr>
   <tr>
      <td colspan="2">
         <div id="idLowest">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkInterestOnly">Would you like to consider interest only loan choices? </td>
               <td class="formValue">
                  <input NAME="InterestOnly" type="radio" value="Y"> Yes
                        &nbsp;<input  NAME="InterestOnly" type="radio" value="N">No
               </td>
            </tr>
         </table>
         </div>
         
         <div id="idLeast">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkHundredPercentFinancing">Would you like 100% financing loan choice?</td>
               <td class="formValue">
                  <input NAME="HundredPercentFinancing" type="radio" value="Y"> Yes
                        &nbsp;<input  NAME="HundredPercentFinancing" type="radio" value="N">No
               </td>
            </tr>
         </table>
         </div>
      </td>
   </tr>
   <tr>
      <td class="formName" id="checkPropertyOccCode">This will be your:</td>
      <td class="formValue">
            <select NAME="PropertyOccCode" size="1">
                              <option selected value="">Please Choose One</option>
                              <option  value="Primary Residence">Primary Residence</option>
                              <option  value="Second/Vacation Home">Second/Vacation Home</option>
               <option  value="Rental/Investment Home">Rental/Investment Property</option>
                        </select>
      </td>
   </tr>
   <tr>
      <td class="formName" id="checkEstimatePropertyValue">What is the estimated value of your home? </td>
      <td class="formValue">$<input type="text" name="EstimatePropertyValue" value="" size="20" maxlength="50"></td>
   </tr>
   <tr>
      <td class="formName" id="checkGoal">MY Refinance Loan Goal Is:</td>
      <td class="formValue">
         <table border="0" cellpadding="5" cellspacing="0">
            <tr>
               <td><input type="radio" name="Goal" value="1" onClick="DisplayRefinanceGoal(this.value)"></td>
               <td>to refinance my first mortgage <b>at the current balance</b></td>
            </tr>
            <tr>
               <td><input type="radio" name="Goal" value="2" onClick="DisplayRefinanceGoal(this.value)"></td>
               <td>to refinance my first mortgage <b>and take cash out</b> of the property</td>
            </tr>
            <tr>
               <td><input type="radio" name="Goal" value="3" onClick="DisplayRefinanceGoal(this.value)"></td>
               <td> to refinance my first and 2nd mortgage (taken out AT TIME OF home purchase)</td>
            </tr>
            <tr>
               <td><input type="radio" name="Goal" value="4" onClick="DisplayRefinanceGoal(this.value)"></td>
               <td> to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)</td>
            </tr>
            <tr>
               <td><input type="radio" name="Goal" value="5" onClick="DisplayRefinanceGoal(this.value)"></td>
               <td> to refinance my first mortgage and keep my existing 2nd/home equity line open.</td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td colspan="2">
     
     
<!--
      **************************************************************************************
      if (to refinance my first mortgage at the current balance) then display
-->
         <div id="idCurrentBalance">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkCurrentLoanProgram_1">What is your current loan program </td>
               <td class="formValue">
                     <select NAME="CurrentLoanProgram_1" size="1">
                                       <option selected value="">Please Choose One</option>
                                       <option  value="30yr fixed">30yr fixed</option>
                                       <option  value="15 year fixed">15 year fixed</option>
                        <option  value="3/1 ARM">3/1 ARM</option>
                        <option  value="5/1 ARM">5/1 ARM</option>
                        <option  value="7/1 ARM">7/1 ARM</option>
                        <option  value="Other">Other</option>
                                 </select>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentBalance_1">What is your current balance  </td>
               <td class="formValue">$<input type="text" name="CurrentBalance_1" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentRate_1">What is your current rate</td>
               <td class="formValue"><input type="text" name="CurrentRate_1" value="" size="20" maxlength="50">%</td>
            </tr>
         </table>
         </div>
<!--
      end
      **************************************************************************************
-->




<!--
      **************************************************************************************
      if (to refinance my first mortgage and take cash out of the property) then display
-->
         <div id="idCashOut">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkCurrentLoanProgram_2">What is your current loan program  </td>
               <td class="formValue">
                     <select NAME="CurrentLoanProgram_2" size="1">
                                       <option selected value="">Please Choose One</option>
                                       <option  value="30yr fixed">30yr fixed</option>
                                       <option  value="15 year fixed">15 year fixed</option>
                        <option  value="3/1 ARM">3/1 ARM</option>
                        <option  value="5/1 ARM">5/1 ARM</option>
                        <option  value="7/1 ARM">7/1 ARM</option>
                        <option  value="Other">Other</option>
                                 </select>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentFirstMortgageBalance_2">What is your current first mortgage balance </td>
               <td class="formValue">$<input type="text" name="CurrentFirstMortgageBalance_2" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentRate_2">What is your current rate </td>
               <td class="formValue"><input type="text" name="CurrentRate_2" value="" size="20" maxlength="50">%</td>
            </tr>
            <tr>
               <td class="formName" id="checkCashOut_2">How much cash do you want?  </td>
               <td class="formValue">$<input type="text" name="CashOut_2" value="" size="20" maxlength="50"></td>
            </tr>
         </table>
         </div>
<!--
      end
      **************************************************************************************
-->








<!--
      **************************************************************************************
      if (to refinance my first and 2nd mortgage (taken out AT TIME OF home purchase) then display
-->
         <div id="idFirstSecond">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkCurrentLoanProgram_3">What is your current FIRST loan program </td>
               <td class="formValue">
                     <select NAME="CurrentLoanProgram_3" size="1">
                                       <option selected value="">Please Choose One</option>
                                       <option  value="30yr fixed">30yr fixed</option>
                                       <option  value="15 year fixed">15 year fixed</option>
                        <option  value="3/1 ARM">3/1 ARM</option>
                        <option  value="5/1 ARM">5/1 ARM</option>
                        <option  value="7/1 ARM">7/1 ARM</option>
                        <option  value="Other">Other</option>
                                 </select>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentFirstMortgageBalance_3">What is your current First mortgage balance  </td>
               <td class="formValue">$<input type="text" name="CurrentFirstMortgageBalance_3" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentFirstMortgageRate_3">What is your current First Mortgage rate </td>
               <td class="formValue"><input type="text" name="CurrentFirstMortgageRate_3" value="" size="20" maxlength="50">%</td>
            </tr>
            <tr>
               <td class="formName" id="checkSecondMortgage_3">My 2nd Mortgage is a:</td>
               <td class="formValue"><input type="radio" name="SecondMortgage_3" value="Line of credit" onClick="document.all.idSecondMortgageLoan.style.display='none';"> Line of credit &nbsp;&nbsp;
               <input type="radio" name="SecondMortgage_3" value="Loan" onClick="checkLoan3()">Loan</td>
            </tr>
            <tr>
               <td colspan="2">
                  <div id="idSecondMortgageLoan">
                  <table border="0" cellpadding="0" cellspacing="0">
                     <tr>
                        <td class="formName" id="checkSecondLoanTerm_3">LOAN - What is the Term of the 2nd Loan? </td>
                        <td class="formValue"><input type="text" name="SecondLoanTerm_3" value="" size="20" maxlength="3"> Years</td>
                     </tr>
                  </table>
                  </div>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkSecondBalance_3">What is the balance on your 2nd </td>
               <td class="formValue">$<input type="text" name="SecondBalance_3" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checkSecondMortgageRate_3">What is your 2nd Mortgage Rate</td>
               <td class="formValue"><input type="text" name="SecondMortgageRate_3" value="" size="20" maxlength="50">%</td>
            </tr>
         </table>
         </div>
<!--
      end
      **************************************************************************************
-->







<!--
      **************************************************************************************
      if (to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)) then display
-->
          <div id="idAfterHomePurchase">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkFirstLoanProgram_4">What is your current FIRST loan program </td>
               <td class="formValue">
                     <select NAME="FirstLoanProgram_4" size="1">
                                       <option selected value="">Please Choose One</option>
                                       <option  value="30yr fixed">30yr fixed</option>
                                       <option  value="15 year fixed">15 year fixed</option>
                        <option  value="3/1 ARM">3/1 ARM</option>
                        <option  value="5/1 ARM">5/1 ARM</option>
                        <option  value="7/1 ARM">7/1 ARM</option>
                        <option  value="Other">Other</option>
                                 </select>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkFirstMortgageBalance_4">What is your current First mortgage balance  </td>
               <td class="formValue">$<input type="text" name="FirstMortgageBalance_4" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checkFirstMortgageRate_4">What is your current First Mortgage rate </td>
               <td class="formValue"><input type="text" name="FirstMortgageRate_4" value="" size="20" maxlength="50">%</td>
            </tr>
            <tr>
               <td class="formName" id="checkSecondMortgage_4">My 2nd Mortgage is a:</td>
               <td class="formValue"><input type="radio" name="SecondMortgage_4" value="" onClick="document.all.idSecondMortgageLoan4.style.display='none'; "> Line of credit &nbsp;&nbsp;<input type="radio" name="SecondMortgage_4" value="" onClick="checkLoan4()">Loan</td>
            </tr>
            <tr>
               <td colspan="2">
                  <div id="idSecondMortgageLoan4">
                  <table border="0" cellpadding="0" cellspacing="0">
                     <tr>
                        <td class="formName" id="checkSecondLoanTerm_4">LOAN - What is the Term of the 2nd Loan? </td>
                        <td class="formValue"><input type="text" name="SecondLoanTerm_4" value="" size="20" maxlength="50"> Yrs</td>
                     </tr>
                  </table>
                  </div>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkSecondBalance_4">What is the balance on your Second </td>
               <td class="formValue">$<input type="text" name="SecondBalance_4" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checksecondMortgage_4">What is your second Mortgage Rate</td>
               <td class="formValue"><input type="text" name="secondMortgageRate_4" value="" size="20" maxlength="50">%</td>
            </tr>
            <tr>
               <td class="formName" id="checkLoanTerm_4">How long have you had this loan   </td>
               <td class="formValue"><input type="text" name="LoanTermYr_4" value="" size="10" maxlength="2">&nbsp;Yrs &nbsp;<input type="text" name="LoanTermMo_4" value="" size="10" maxlength="2">Mos</td>
            </tr>
         </table>
         </div>
<!--
      end
      **************************************************************************************
-->







<!--
      **************************************************************************************
      if (to refinance my first mortgage and keep my existing 2nd/home equity line open.) then display
-->
         <div id="idAfterHomePurchaseEquity">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
               <td class="formName" id="checkFirstLoanProgram_5">What is your current FIRST loan program </td>
               <td class="formValue">
                     <select NAME="FirstLoanProgram_5" size="1">
                                       <option selected value="">Please Choose One</option>
                                       <option  value="30yr fixed">30yr fixed</option>
                                       <option  value="15 year fixed">15 year fixed</option>
                        <option  value="3/1 ARM">3/1 ARM</option>
                        <option  value="5/1 ARM">5/1 ARM</option>
                        <option  value="7/1 ARM">7/1 ARM</option>
                        <option  value="Other">Other</option>
                                 </select>
               </td>
            </tr>
            <tr>
               <td class="formName" id="checkFirstMortgageBalance_5">What is your current first mortgage balance </td>
               <td class="formValue">$<input type="text" name="FirstMortgageBalance_5" value="" size="20" maxlength="50"></td>
            </tr>
            <tr>
               <td class="formName" id="checkCurrentRate_5">What is your current rate </td>
               <td class="formValue"><input type="text" name="CurrentRate_5" value="" size="20" maxlength="50">%</td>
            </tr>
            <tr>
               <td class="formName" id="checkSecondEquityLineBalance_5">What is your second/home equity line balance </td>
               <td class="formValue">$<input type="text" name="SecondEquityLineBalance_5" value="" size="20" maxlength="50"></td>
            </tr>
         </table>
         </div>
      </td>
   </tr>
<!--
      end
      **************************************************************************************
-->

   <tr>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td colspan="3" align="center"><input type="submit" name="TaskSubmit" value="Get Pricing" class="button"></td>
   </tr>
</table>
 </form>
 </center>
<%@ include file="/common/subwrapperbottom.jsp" %>

                 
<%@ include file="/common/wrapperbottom.jsp" %>
               
0
Comment
Question by:rajeshmandhana
  • 3
  • 2
7 Comments
 

Author Comment

by:rajeshmandhana
ID: 10874273
help asap
0
 
LVL 13

Expert Comment

by:copyPasteGhost
ID: 10874389
why don't you load all the variables in a java bean..
and then load them back to dispaly them?
If you want to know hot to do this let me know
Ghost
0
 

Author Comment

by:rajeshmandhana
ID: 10874944
i need the bean also plz.send code asap
0
 

Author Comment

by:rajeshmandhana
ID: 10874950
send all code regarding bean ,javascript etc.
0
 
LVL 13

Accepted Solution

by:
copyPasteGhost earned 50 total points
ID: 10877120
I when over this in detail here

http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20953755.html

pelase ask if you still need help
Ghost
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java.util.concurrent.Callable way of creating threads 2 105
Help with LDAp login using jsp 6 115
doubleChar java challenge 7 106
JSONSerializer.toJSON in JSP generating error 8 76
The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
As a business owner, there are many things that keep you up at night. Profit margins, employee retention, human resource protocols, whether your product or service will remain competitive. When you own or manage a technology company that operates la…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question