Link to home
Start Free TrialLog in
Avatar of jdharsha
jdharsha

asked on

web app

I have  a JSP on which the "endorsement limit" is being  rendered as 2.00 . I want it in percentage(2%). How do i do that? I am sending the source.

thanks

--------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">




<HTML>
  <HEAD>
   
   
   
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM Software Development Platform">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK rel="stylesheet" type="text/css"  href="../../../../theme/Master.css" title="Style">
    <LINK rel="stylesheet" type="text/css"  href="../../../../theme/stylesheet.css" title="Style">
    <LINK rel="stylesheet" type="text/css"  href="/styles/default.css" title="Style">
    <LINK rel="stylesheet" type="text/css"  href="../../../../styles/NewQuotes.css" title="Style">
    <TITLE>SaveNRate.jsp</TITLE>
   

    <SCRIPT type="text/javascript">
      function func_1(thisObj, thisEvent) {
      //use 'thisObj' to refer directly to this component instead of keyword 'this'
      //use 'thisEvent' to refer to the event generated instead of keyword 'event'
      window.print();
      }
  </SCRIPT></HEAD>
  <style type="text/css">
      .errors {
      font-size: 12pt;
      color: red;
      }
  </style>
 
    <BODY onload="document.body.style.cursor = 'default';">
     
       
          <center><TABLE class="pageheaderstyle" width="100%"><TR><TD align=center colspan=3><IMG src="../../../../images/LogoOnlyMediumColor.gif" width=255 height=110 border=0></TD></TR><TR><TD align=center colspan=3><IMG src="../../../../images/aas.gif"></TD></TR><TR><TD width="30%" align=center></TD><TD width="40%" align=center><HR>This information is for use by authorized personnel only.<HR></TD><TD width="30%" align=center></TD></TR></TABLE><SPAN class="headerPageTitle">Homeowners Quote</SPAN></center>
       
       

       
         
        <table class="panelGrid" width="100%">
<tbody>
<tr>
<td><table id="quoteMessages"></table></td>
</tr>
</tbody>
</table>


       
         
         
         
         
        <table id="grid6" class="panelGrid" width="100%">
<tbody>
<tr>
<td><span id="txtPrepFor" class="printText" style="font-size: 14pt; font-weight: bold"> Quote Prepared for red das</span></td>
</tr>
<tr>
<td><span id="txtEffectiveDate" class="printText">Quote Effective 08/01/2007</span></td>
</tr>
<tr>
<td><span id="txtAgency" class="printText">Quote Prepared by ravindranath of American Farmers &amp; Ranchers Gen. Agy Inc #0</span></td>
</tr>
<tr>
<td><span id="text4" class="printText" style="text-align: right">Printed on 08/01/2007</span></td>
</tr>
</tbody>
</table>

       
       
         

        <table id="grid5" class="panelGrid" width="100%">
<tbody>
<tr>
<td><span id="txtAgency5" class="outputText" style="color:blue">QuoteNumber 20070801103112 last updated on 08/01/2007 at 10:31:11</span></td>
</tr>
</tbody>
</table>

       
         
        <table id="grid4head" class="panelGridhead" width="100%">
<tbody>
<tr>
<td><span id="Cov4Head" class="sectionhead">Quote Data</span></td>
</tr>
</tbody>
</table>

       
         
         
                       
         
           
                       
        <table id="gridinp" class="panelGrid" width="100%">
<tbody>
<tr>
<td><span id="txtPrepFor5" class="printText">Form 1 - Basic  </span></td>
</tr>
<tr>
<td><span id="text1" class="printText">Construction Code - Brick on Frame</span></td>
</tr>
<tr>
<td><span id="text3" class="printText">Protection Class 1</span></td>
</tr>
<tr>
<td><span id="text14" class="printText">Risk Zip Code 12345 </span></td>
</tr>
</tbody>
</table>

       
         
        <table id="grid5head" class="panelGridhead" width="100%">
<tbody>
<tr>
<td><span id="CovHead" class="sectionhead">Coverages and Premiums</span></td>
</tr>
</tbody>
</table>


       
         
           
             
               
               
             
             
             
             
           
           
             
               
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

           
             
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

         
        <table id="grid3" class="panelGrid" width="100%">
<tbody>
<tr>
<td><table id="table2" class="dataTable" border="2" cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr>
<th class="headerClass" width="50%" scope="col"><span id="table2:text33" class="outputText" style="font-family: Arial; font-size: 10pt">Coverages</span></th>
<th class="headerClass" width="10%" scope="col"><span id="table2:text33p1" class="outputText" style="font-family: Arial; font-size: 10pt">Limits</span></th>
<th class="headerClass" width="10%" scope="col"><span id="table2:textcol2" class="outputText" style="font-family: Arial; font-size: 10pt">Deductible $500</span></th>
<th class="headerClass" width="10%" scope="col"><span id="table2:textcol3" class="outputText" style="font-family: Arial; font-size: 10pt">Deductible $1000</span></th>
<th class="headerClass" width="10%" scope="col"><span id="table2:textcol4" class="outputText" style="font-family: Arial; font-size: 10pt">Deductible $2500</span></th>
</tr>
</thead>
<tbody>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:0:text34" class="outputText" style="font-family: Arial; font-size: 9pt">Coverage A- Dwelling </span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:0:text34p1" class="outputText" style="font-family: Arial; font-size: 9pt">100,000.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:0:textcol2data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">820.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:0:textcol3data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">728.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:0:textcol4data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">601.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:1:text34" class="outputText" style="font-family: Arial; font-size: 9pt">Coverage B- Other Structures </span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:1:text34p1" class="outputText" style="font-family: Arial; font-size: 9pt">10,000.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:1:textcol2data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:1:textcol3data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:1:textcol4data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:2:text34" class="outputText" style="font-family: Arial; font-size: 9pt">Coverage C- Personal Property </span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:2:text34p1" class="outputText" style="font-family: Arial; font-size: 9pt">50,000.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:2:textcol2data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:2:textcol3data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:2:textcol4data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:3:text34" class="outputText" style="font-family: Arial; font-size: 9pt">Coverage D- Loss of Use </span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:3:text34p1" class="outputText" style="font-family: Arial; font-size: 9pt">10,000.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:3:textcol2data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:3:textcol3data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:3:textcol4data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:4:text34" class="outputText" style="font-family: Arial; font-size: 9pt">Coverage L- Liability </span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:4:text34p1" class="outputText" style="font-family: Arial; font-size: 9pt">25,000.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:4:textcol2data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:4:textcol3data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:4:textcol4data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:5:text34" class="outputText" style="font-family: Arial; font-size: 9pt">Coverage M- Medical </span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2:5:text34p1" class="outputText" style="font-family: Arial; font-size: 9pt">500.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:5:textcol2data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:5:textcol3data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2:5:textcol4data" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>


        <!-- c:if test="${sessionScope.Quote.numSelectedEndorsements > 0}"-->
       
         
        <table id="grid5headE" class="panelGridhead" width="100%">
<tbody>
<tr>
<td><span id="HeadE" class="sectionhead">Endorsements</span></td>
</tr>
</tbody>
</table>


       
         
           
             
               
               
             
             
             
             
           
           
             
               
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

           
             
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

         
        <table id="grid3E" class="panelGrid" width="100%">
<tbody>
<tr>
<td><table id="table2E" class="dataTable" border="2" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2E:0:text34E" class="outputText" style="font-family: Arial; font-size: 9pt">Main Dwelling</span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2E:0:text34Ep1" class="outputText" style="font-family: Arial; font-size: 9pt">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2E:0:textcol2dataE" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">---</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2E:0:textcol3dataE" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">---</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2E:0:textcol4dataE" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">---</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2E:1:text34E" class="outputText" style="font-family: Arial; font-size: 9pt">-----Endorsement ML-405B: Windstorm and Hail deductible (1%, 2%, 5%)</span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2E:1:text34Ep1" class="outputText" style="font-family: Arial; font-size: 9pt">2.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2E:1:textcol2dataE" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">-109.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2E:1:textcol3dataE" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">-72.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2E:1:textcol4dataE" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

        <!--/c:if-->

        <!--c:if test="${sessionScope.quoteObject.numSelectedDiscounts > 0}"-->
       
         
        <table id="grid5headD" class="panelGridhead" width="100%">
<tbody>
<tr>
<td><span id="HeadD" class="sectionhead">Discounts &amp; Surcharges</span></td>
</tr>
</tbody>
</table>


       
         
           
             
               
               
             
             
             
             
           
           
             
               
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

           
             
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

         
        <table id="grid3D" class="panelGrid" width="100%">
<tbody>
<tr>
<td><table id="table2D" class="dataTable" border="2" cellpadding="0" cellspacing="0" width="100%">
<tbody>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

        <!--/c:if-->


       
         
        <table id="grid5headS" class="panelGridhead" width="100%">
<tbody>
<tr>
<td><span id="HeadS" class="sectionhead">SUMMARY</span></td>
</tr>
</tbody>
</table>


       
         
           
             
               
               
             
             
             
             
           
           
             
               
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

           
             
               
             
             
             
             
             
           
           
             
               
             
             
             
             
             
           

         
        <table id="grid3S" class="panelGrid" width="100%">
<tbody>
<tr>
<td><table id="table2S" class="dataTable" border="2" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:0:text34S" class="outputText" style="font-family: Arial; font-size: 9pt">Total Endorsements</span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:0:text34Sp1" class="outputText" style="font-family: Arial; font-size: 9pt">N/A </span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:0:textcol2dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">-109.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:0:textcol3dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">-72.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:0:textcol4dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:1:text34S" class="outputText" style="font-family: Arial; font-size: 9pt">Total Discounts &amp; Surcharges</span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:1:text34Sp1" class="outputText" style="font-family: Arial; font-size: 9pt">N/A </span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:1:textcol2dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:1:textcol3dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:1:textcol4dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">0.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:2:text34S" class="outputText" style="font-family: Arial; font-size: 9pt">Membership</span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:2:text34Sp1" class="outputText" style="font-family: Arial; font-size: 9pt">N/A </span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:2:textcol2dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">15.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:2:textcol3dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">15.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:2:textcol4dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">15.00</span></td>
</tr>
<tr class="rowClass1">
<td width="50%" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:3:text34S" class="outputText" style="font-family: Arial; font-size: 9pt">Total Premium</span></td>
<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2S:3:text34Sp1" class="outputText" style="font-family: Arial; font-size: 9pt">N/A </span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:3:textcol2dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">726.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:3:textcol3dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">671.00</span></td>
<td width="10%" align="right" class="columnClass1"><span id="table2S:3:textcol4dataS" class="outputText" style="font-family: Arial; font-size: 9pt; text-align: right">616.00</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

       
         
        <table id="grid1" class="panelGrid">
<tbody>
<tr>
<td><span id="txtDisclaimer" class="outputText" style="color: blue">OFU DISCLAIMER: This quoted premium is only an estimate based upon the information provided by you. Additional information obtained by the company may increase or decrease this quoted price. </span></td>
</tr>
</tbody>
</table>

        <form id="form1" method="post" action="/quote/faces/quotes/property/ho_webservices/jsps/SaveNRate.jsp" class="form" enctype="application/x-www-form-urlencoded">

         
           
             
             
           

           
           
           
           
           
           
           
             
               
                 
                 <!-- beta lookup -->
               <!-- ho -->
             <!-- quotenumber check -->
           
          <table id="form1:grid2" class="panelGrid" width="100%">
<tbody>
<tr>
<td><input type="submit" value="Edit Quote" name="form1:btnEditQuote" id="form1:btnEditQuote" onclick="document.body.style.cursor = 'wait';" class="core-button" /></td>
<td><input type="submit" value="Back To Search Results" name="form1:btnBackToSearchResults" id="form1:btnBackToSearchResults" onclick="document.body.style.cursor = 'wait';" class="core-button" /></td>
<td><input type="submit" value="Back To Search" name="form1:btnBackToSearch" id="form1:btnBackToSearch" onclick="document.body.style.cursor = 'wait';" class="core-button" /></td>
<td><input type="submit" value="Home" name="form1:btnHome" id="form1:btnHome" class="core-button" /></td>
<td><input type="submit" value="Print" name="form1:btnPrint" id="form1:btnPrint" onclick="return func_1(this, event);" class="core-button" /></td>
<td><input type="submit" value="Create / Edit Application" name="form1:btnCreateEditApp" id="form1:btnCreateEditApp" onclick="document.body.style.cursor = 'wait';" class="core-button" /></td>
</tr>
</tbody>
</table>

          <hr />
         
           
             
               
                 
               
             
             
           
           
          <table id="form1:deleteGrid" class="panelGrid" width="100%">
<tbody>
<tr>
<td><input type="submit" value="Delete" name="form1:btnDelete" id="form1:btnDelete" onclick="return confirm('This will delete the quote as well as the in-progress application (if it exists). Press the Ok button to continue.'); document.body.style.cursor='wait';" style="color: red;" class="core-button" /></td>
</tr>
</tbody>
</table>



        <input type="hidden" name="form1" value="form1" /></form>


    </BODY>
 
</HTML>
Avatar of LocoTechCJ
LocoTechCJ
Flag of United States of America image

This appears to be a dynamic page that is possibly created from some other code when someone requests a quote, but I could be wrong.  If this is simply a static page, not changing or is manually changed each time, then on this line:

<td width="10%" align="right" bgcolor="#f5f8cb" class="columnClass1"><span id="table2E:1:text34Ep1" class="outputText" style="font-family: Arial; font-size: 9pt">2.00</span></td>
 
Change '2.00' to '2&#37;'  without quotes.

If this is not a static page, then it's almost as simple, but would need to be changed in the actual code that creates this page.

LTCJ

Avatar of jdharsha
jdharsha

ASKER

This is the code that creates that page. Can u still help where to look at?
-----------------------------------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf:pagecode language="java" location="/JavaSource/pagecode/quotes/property/ho_webservices/jsps/QuoteController.java" --%><%-- /jsf:pagecode --%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<HTML>
  <HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <META name="GENERATOR" content="IBM Software Development Platform" />
    <META http-equiv="Content-Style-Type" content="text/css" />
    <LINK rel="stylesheet" type="text/css"
          href="../../../../theme/Master.css" title="Style"  />
    <LINK rel="stylesheet" type="text/css"
          href="../../../../theme/stylesheet.css" title="Style" />
    <LINK rel="stylesheet" type="text/css"
          href="../../../../styles/default.css" title="Style" />
    <LINK rel="stylesheet" type="text/css"
          href="../../../../styles/NewQuotes.css" title="Style" />
    <LINK href="/styles/sliding_doors_v1.css" rel="stylesheet"
          type="text/css" />
    <TITLE>EditQuote.jsp</TITLE>
    <%@ taglib uri="/WEB-INF/tlds/PageHeader.tld" prefix="ph"%>
    <script src="../../../../js/utilities.js"></script>
      </HEAD>
  <f:view>
    <BODY onload="document.body.style.cursor = 'default'; toggleSubmit=true;">
      <hx:scriptCollector id="scriptCollector1"
                          preRender="#{pc_QuoteController.onPageLoadBegin}"
                          decode="#{pc_QuoteController.onPagePost}">
        <h:form styleClass="form" id="form1" onsubmit="return maybeSubmit();">
           <c:if test="${sessionScope.quotetype=='HO'}">
            <ph:PageHeader pageTitle="Homeowners Quote Data"
                           imageDirectory="../../../../images" />
          </c:if>
          <c:if test="${sessionScope.quotetype=='FO'}">
            <ph:PageHeader pageTitle="Farmowners Quote Data"
                           imageDirectory="../../../../images" />
            <DIV id="header">
              <UL>
                <LI id="current"><h:commandLink styleClass="commandLink"
                                                id="lnkMainDwellingF"
                                                action="#{pc_QuoteController.mainDwellingTab}">
                    <h:outputText id="text24MDF" styleClass="outputText"
                                  value="Main Dwelling">
                    </h:outputText>
                </h:commandLink></LI>
                <LI><h:commandLink styleClass="commandLink" id="lnkPolicy"
                                   action="#{pc_QuoteController.policyTab}">
                    <h:outputText id="text24Policy" styleClass="outputText"
                                  value="Policy">
                    </h:outputText>
                </h:commandLink></LI>
                <LI><h:commandLink styleClass="commandLink" id="lnkBarn"
                                   action="#{pc_QuoteController.barnTab}">
                    <h:outputText id="text24" styleClass="outputText"
                                  value="Add / Delete Barns...">
                    </h:outputText>
                </h:commandLink></LI>
                <LI><h:commandLink styleClass="commandLink" id="lnkSFPP"
                                   action="#{pc_QuoteController.securedPropertyTab}">
                    <h:outputText id="text25" styleClass="outputText"
                                  value="Add / Delete Scheduled Farm Personal Property...">
                    </h:outputText>
                </h:commandLink></LI>
                <LI><h:commandLink styleClass="commandLink" id="lnkLiability"
                                   action="#{pc_QuoteController.liabilityTab}">
                    <h:outputText id="text26" styleClass="outputText"
                                  value="Add / Delete Liability...">
                    </h:outputText>
                </h:commandLink></LI>
                <LI><h:commandLink styleClass="commandLink" id="lnkUFPP"
                                   action="#{pc_QuoteController.unsecuredPropertyTab}">
                    <h:outputText id="text27" styleClass="outputText"
                                  value="Add / Delete Unscheduled Farm Personal Property">
                    </h:outputText>
                </h:commandLink></LI>
              </UL>
            </DIV>
          </c:if>
          <c:if test="${sessionScope.Quote.numberDate >0}">
            <h:panelGrid styleClass="panelGrid">
              <h:outputText styleClass="outputText" id="text17"
                            value="Quote #{sessionScope.Quote.numberDate}#{sessionScope.Quote.numberTime} Created by #{sessionScope.Quote.createdByUser} at #{sessionScope.Quote.createTimeStamp} on #{sessionScope.Quote.createDateStamp}, Last Updated by #{sessionScope.Quote.updateByUser} at #{sessionScope.Quote.updateTimeStamp} on #{sessionScope.Quote.updateDateStamp}"
                            style="color: blue;"/>
            </h:panelGrid>
          </c:if>
          <c:if test="${sessionScope.Quote.numberDate=='0'}">
            <h:panelGrid styleClass="panelGrid" columns="2">
              <h:outputText styleClass="outputLabel" id="lblAgency" value="Agency"/>
              <h:selectOneMenu styleClass="selectOneMenu" id="cmbAgency"
                               value="#{sessionScope.Quote.agencyNumber}">
                <f:selectItems
                   value="#{sessionScope.agencybean.agencyListSpecific}" />
              </h:selectOneMenu>
            </h:panelGrid>
          </c:if>
          <c:if test="${sessionScope.invalidAgency == '1'}">
            <h:panelGrid styleClass="panelGrid" columns="2">
              <h:outputText styleClass="outputLabel" value="Agency"/>
              <h:selectOneMenu styleClass="selectOneMenu" id="cmbAgencyInactive"
                               value="#{sessionScope.Quote.agencyNumber}">
                <f:selectItems value="#{sessionScope.agencybean.agencyListSpecific}" />
              </h:selectOneMenu>
            </h:panelGrid>
          </c:if>
          <TABLE width="100%">
            <TR>
              <TD>
                <h:outputText styleClass="outputLabel" id="text1"
                              value="Prepared By:"/>
                <h:inputText id="txtPrepByName"
                             value="#{sessionScope.Quote.preparedByName}"
                             styleClass="inputText"/>
              </TD>
              <TD colspan="2">
                <h:outputText styleClass="outputLabel" id="text2"
                              value="Quote Effective Date (mm/dd/yyyy):"/>
                              <h:inputText id="txtEffDate"
                              value="#{sessionScope.Quote.effectiveDate}"
                              styleClass="inputText"
                             size="10"
                             onkeypress="return formatDateOnTheFly(this, event)"/>
                             </TD>
            </TR>
            <TR>
              <TD>
                <h:outputText styleClass="outputLabel" id="text3"
                              value="First Name of Person Prepared For:"/>
                <h:inputText id="txtPrepForFname"
                             value="#{sessionScope.Quote.preparedForFName}"
                             styleClass="inputText"/>
              </TD>
              <TD>
                <h:outputText styleClass="outputLabel" id="text4"
                              value="Last Name of Person Prepared
                                     For:"/>
                <h:inputText id="txtPrepForLname"
                             value="#{sessionScope.Quote.preparedForLName}"
                             styleClass="inputText"/>
              </TD>
              <TD>
                <h:outputText styleClass="outputLabel" value="Apply Membership Dues"/>
                <h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
                                         value="#{sessionScope.Quote.applyMembership}"/>
              </TD>
            </TR>
          </TABLE>

          <h:panelGrid styleClass="panelGridhead" id="grid2" columns="1"
                       width="100%">
            <h:outputText id="text5"
                          value="#{sessionScope.quotetype} Quote Data Unit #{sessionScope.Quote.currentUnit.description}"
                          styleClass="sectionhead">
            </h:outputText>
          </h:panelGrid>

          <TABLE width="100%">
            <TR>
              <TD><h:outputText styleClass="outputLabel" id="text6"
                                value="#{sessionScope.quotetype} Form Type">
                </h:outputText> <h:selectOneMenu styleClass="selectOneMenu"
                                                 id="cmbForm" value="#{pc_QuoteController.form}">
                  <f:selectItems value="#{sessionScope.Lookup.formsList}" />
              </h:selectOneMenu></TD>
              <TD><h:outputText styleClass="outputLabel" id="text7"
                                value="Construction Type">
                </h:outputText> <h:selectOneMenu styleClass="selectOneMenu"
                                                 id="cmbConstCode" value="#{pc_QuoteController.constCode}">
                  <f:selectItems value="#{sessionScope.Lookup.constTypeList}" />
              </h:selectOneMenu></TD>
              <TD><h:outputText styleClass="outputLabel" id="text8"
                                value="Protection Class">
                </h:outputText> <h:selectOneMenu styleClass="selectOneMenu"
                                                 id="cmbProtectClass" value="#{sessionScope.Quote.protectClass}">
                  <f:selectItems value="#{sessionScope.Lookup.protectClassList}" />
              </h:selectOneMenu></TD>
              <TD><h:outputText styleClass="outputLabel" id="text9"
                                value="County">
                </h:outputText> <h:selectOneMenu styleClass="selectOneMenu"
                                                 id="cmbTerrCode" value="#{sessionScope.Quote.terrCode}">
                  <f:selectItems value="#{sessionScope.Lookup.countyList}" />
              </h:selectOneMenu></TD>
              <TD><h:outputText styleClass="outputLabel" id="text9a"
                                value="Risk Zip">
               </h:outputText>
              <h:inputText id="txtRiskZipCode"
                             value="#{sessionScope.Quote.riskZipCode}"
                             styleClass="inputText" size="5"
                             onkeypress="return numbersonly(this, event);"/></TD>
            </TR>
            <c:if test="${sessionScope.quotetype=='XX'}">
              <tr>
                <td>
                  <h:outputText styleClass="outputLabel" id="text10"
                                value="Coverage A Acres"></h:outputText>
                  <h:inputText id="txtCovAAcres"
                               value="#{sessionScope.Quote.covAAcres}"
                               styleClass="inputText" style="font-family: Arial; font-size: 9pt"
                               size="6"></h:inputText>
                </td>
              </tr>
            </c:if>
          </TABLE>
          <h:panelGrid styleClass="panelGridhead" id="grid4" columns="1"
                       width="100%">
            <h:outputText styleClass="sectionhead" id="text11"
                          value="#{sessionScope.quotetype} Limits">
            </h:outputText>
          </h:panelGrid>
          <TABLE width="100%">
            <TR>
              <TD>
                <h:outputText styleClass="outputLabel" id="text12"
                              value="Coverage A/C Limit">
                </h:outputText>
                <h:inputText id="txtCovALimit"
                             value="#{sessionScope.Quote.covALimit}"
                             styleClass="inputText" size="6"
                             onkeypress="return numbersonly(this, event);">
                </h:inputText>
              </TD>
              <TD><h:outputText styleClass="outputLabel" id="text13"
                                value="Coverage L Limit">
                </h:outputText> <h:selectOneMenu styleClass="selectOneMenu"
                                                 id="cmbCovLLimit" value="#{sessionScope.Quote.covLLimit}">
                  <f:selectItems value="#{sessionScope.Lookup.covLLimitsList}" />
              </h:selectOneMenu></TD>
              <TD><h:outputText styleClass="outputLabel" id="text14"
                                value="Coverage M Limit">
                </h:outputText> <h:selectOneMenu styleClass="selectOneMenu"
                                                 id="cmbCovMLimit" value="#{sessionScope.Quote.covMLimit}">
                  <f:selectItems value="#{sessionScope.Lookup.covMLimitsList}" />
              </h:selectOneMenu></TD>
            </TR>
          </TABLE>
          <h:panelGrid styleClass="panelGridhead" id="deductiblesheading"
                       columns="1" width="100%">
            <h:outputText styleClass="sectionhead" id="dedlablhdg"
                          value="#{sessionScope.quotetype} Deductibles (A/C)">
            </h:outputText>
          </h:panelGrid>
          <h:panelGrid styleClass="panelGrid" id="gridDeductibles" columns="4"
                       width="100%">
            <h:outputText styleClass="outputLabel" id="dedlabl3"
                          value="Deductibles">
            </h:outputText>
            <h:selectOneMenu styleClass="selectOneMenu" id="cmbDed1"
                             value="#{sessionScope.Quote.deductibles[0]}">
              <f:selectItems value="#{sessionScope.Lookup.deductibleList}" />
            </h:selectOneMenu>
            <h:selectOneMenu styleClass="selectOneMenu" id="cmbDed2"
                             value="#{sessionScope.Quote.deductibles[1]}">
              <f:selectItems value="#{sessionScope.Lookup.deductibleList}" />
            </h:selectOneMenu>
            <h:selectOneMenu styleClass="selectOneMenu" id="cmbDed3"
                             value="#{sessionScope.Quote.deductibles[2]}">
              <f:selectItems value="#{sessionScope.Lookup.deductibleList}" />
            </h:selectOneMenu>
          </h:panelGrid>
          <h:panelGrid styleClass="panelGridhead" id="discountheading"
                       columns="1" width="100%">
            <h:outputText styleClass="sectionhead" id="textdisc15"
                          value="#{sessionScope.quotetype} Surcharges/Discounts ([CTRL] click to select multiple discounts and click Add Surcharges/Discounts)">
            </h:outputText>
          </h:panelGrid>
          <h:panelGrid styleClass="panelGrid" id="griddisc" columns="3"
                       width="65%">
            <h:selectManyListbox styleClass="selectManyListbox" id="msRemEndSR"
                                 size="10">
              <f:selectItems
                 value="#{sessionScope.Quote.remainingEndorsements_SR}" />
            </h:selectManyListbox>
            <hx:commandExButton type="submit" value="Add Surcharges/Discounts"
                                styleClass="core-button" id="btnAddEndSR"
                                action="#{pc_QuoteController.addSREndorsement}"
                                onclick="document.body.style.cursor = 'wait';">
            </hx:commandExButton>
            <hx:outputLinkEx styleClass="outputLinkEx"
                             value="http://www2.cplink2.com" id="linkEx1" target="_blank">
              <h:outputText id="text28" styleClass="outputText"
                            value="Link to ChoicePoint">
              </h:outputText>
            </hx:outputLinkEx>
          </h:panelGrid>
          <h:panelGrid styleClass="panelGridhead" id="endorsementheadin"
                       columns="1" width="100%">
            <h:outputText styleClass="sectionhead" id="text15"
                          value="#{sessionScope.quotetype} Endorsements ([CTRL] click to select multiple endorsements and click Add Endorsements)">
            </h:outputText>
          </h:panelGrid>
          <h:panelGrid styleClass="panelGrid" id="gridends" columns="3"
                       width="60%">
            <h:outputText styleClass="outputLabel" id="text22" value="Liability">
            </h:outputText>
            <h:outputText styleClass="outputLabel" id="text18"
                          value="Physical Damage / Inland Marine">
            </h:outputText>
            <h:outputText styleClass="outputText" id="text23" value="     "></h:outputText>

            <h:selectManyListbox styleClass="selectManyListbox" id="msRemEndL"
                                 size="10">
              <f:selectItems
                 value="#{sessionScope.Quote.remainingEndorsements_L}" />
            </h:selectManyListbox>
            <h:selectManyListbox styleClass="selectManyListbox" id="msRemEndDI"
                                 size="10">
              <f:selectItems
                 value="#{sessionScope.Quote.remainingEndorsements_DI}" />
            </h:selectManyListbox>
            <hx:commandExButton type="submit" value="Add Endorsements"
                                styleClass="core-button" id="btnAddEndDI"
                                action="#{pc_QuoteController.addLiabilityDamageEndorsement}"
                                onclick="document.body.style.cursor = 'wait';">
            </hx:commandExButton>
          </h:panelGrid>
           <h:panelGrid styleClass="panelGrid" id="endorsements" columns="1"
                       width="75%">
            <c:if test="${pc_QuoteController.selectedEndorsementsSize > 0}">
              <h:dataTable id="tblSelEndorsements"
                           value="#{pc_QuoteController.selectedEndorsements}"
                           var="varselectedEndorsements" styleClass="dataTable"
                           headerClass="headerClass" footerClass="footerClass"
                           rowClasses="rowClass1" columnClasses="columnClass1" border="1"
                           cellpadding="2" cellspacing="0" rows="10" width="100%">
                <h:column id="column3">
                  <f:facet name="header">
                    <h:outputText styleClass="outputLabel"
                                  value="Selected Endorsements" id="text19">
                    </h:outputText>
                  </f:facet>
                  <h:outputText id="text20"
                                value="#{varselectedEndorsements.name} = #{varselectedEndorsements.description}"
                                styleClass="outputLabel">
                  </h:outputText>
                  <f:attribute value="40%" name="width" />
                </h:column>
                <h:column id="column4">
                  <f:facet name="header">
                    <h:outputText styleClass="outputLabel" value="Limit" id="text21">
                    </h:outputText>
                  </f:facet>
                  <h:inputText id="txtEndLimit"
                               value="#{varselectedEndorsements.limit}" styleClass="inputText"
                               onkeypress="return numbersonly(this, event)">
                  </h:inputText>
                  <f:attribute value="10%" name="width" />
                </h:column>
                <h:column id="column5">
                  <f:facet name="header">
                    <h:outputText styleClass="outputLabel" value="Message"
                                  id="text19e">
                    </h:outputText>
                  </f:facet>
                  <h:outputText id="txtEndError"
                                value="#{varselectedEndorsements.errorMessage}"
                                styleClass="outputText"
                                style="color:
                                       red">
                  </h:outputText>
                  <f:attribute value="40%" name="width" />
                </h:column>
                <h:column id="columnend6e">
                  <f:facet name="header">
                    <h:outputText styleClass="outputLabel" value=""
                                  id="text20delete">
                    </h:outputText>
                  </f:facet>
                  <h:commandLink styleClass="commandLink" id="lnkDeleteEndorsement"
                                 action="#{pc_QuoteController.deleteEndorsement}">
                    <h:outputText id="text20e" value="Delete Endorsement"
                                  styleClass="outputText">
                    </h:outputText>
                  </h:commandLink>
                  <f:attribute value="40%" name="width" />
                </h:column>
                <f:facet name="footer">
                  <hx:panelBox styleClass="panelBox" id="box2">
                    <hx:pagerDeluxe styleClass="pagerDeluxe" id="deluxe2"
                                    srcFirst="/quote/.ibmjsfres/img/datagrid_pager_first.gif"
                                    srcLast="/quote/.ibmjsfres/img/datagrid_pager_last.gif"
                                    srcPrevious="/quote/.ibmjsfres/img/datagrid_pager_previous.gif"
                                    srcNext="/quote/.ibmjsfres/img/datagrid_pager_next.gif" />
                  </hx:panelBox>
                </f:facet>
              </h:dataTable>
            </c:if>
          </h:panelGrid>
          <h:messages styleClass="messages" id="messages1"
                      style="color: red; font-family: Arial; font-size: 11pt"
                      layout="table"
                      showDetail="true"
                      showSummary="true"
                      tooltip="true" />
          <BR>                
            <h:panelGrid styleClass="panelGrid" id="grid6" width="100%"
                         columns="5">
              <c:if test="${sessionScope.quotetype=='HO'}">
                <c:if test="${sessionScope.readOnly=='false'}">
                  <hx:commandExButton id="cmdSaveNRateHO" styleClass="core-button"
                                      type="submit" value="Save and Rate"
                                      action="#{pc_QuoteController.saveNRateHO}"
                                      onclick="document.body.style.cursor = 'wait';">
                  </hx:commandExButton>
                </c:if>
              </c:if>
              <c:if test="${sessionScope.quotetype=='FO'}">
                <c:if test="${sessionScope.readOnly=='false'}">
                  <hx:commandExButton type="submit" value="FO Save and Rate"
                                      styleClass="core-button" id="cmdSaveNRateFO"
                                      action="#{pc_QuoteController.saveNRateFO}"
                                      onclick="document.body.style.cursor = 'wait';">
                  </hx:commandExButton>
                </c:if>
              </c:if>
              <hx:commandExButton type="submit" value="Back to Search Results"
                                  styleClass="core-button" id="btnBackToSearchResults"
                                  action="#{pc_QuoteController.backToSearchResults}"
                                  onclick="document.body.style.cursor = 'wait';">
              </hx:commandExButton>
              <hx:commandExButton type="submit" value="Back To Search"
                                  styleClass="core-button" id="btnBackToSearch"
                                  action="#{pc_QuoteController.backToSearch}"
                                  onclick="document.body.style.cursor = 'wait';">
              </hx:commandExButton>
              <hx:commandExButton type="submit" value="Home"
                                  styleClass="core-button" id="btnHome"
                                  action="#{pc_QuoteController.home}">
              </hx:commandExButton>
            </h:panelGrid>
        </h:form>
      </hx:scriptCollector>
    </BODY>
  </f:view>
</HTML>
This appears to be a page that the... agent maybe... fills in to create/change the quote??  I can see where it is grabbing vaules from somewhere... other than this page.  So, this doesn't actually create the other page in questions.  From what I can tell, QuoteController.java probably generates the pages and would be where you make the necessary changes.

LTCJ
How do i extract " limit" value from here?

<h:column id="column4">
                  <f:facet name="header">
                    <h:outputText styleClass="outputLabel" value="Limit" id="text21">
                    </h:outputText>
                  </f:facet>
                  <h:inputText id="txtEndLimit"
                               value="#{varselectedEndorsements.limit}" styleClass="inputText"
                               onkeypress="return numbersonly(this, event)">
                  </h:inputText>
How does one extract values from a session variable like varselectedEndorsements above?

thanks
ASKER CERTIFIED SOLUTION
Avatar of LocoTechCJ
LocoTechCJ
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial