⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 使用Drool规则引擎开发关于保险评估的一个案例。仅供参考
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                                    <td><select name="tipoResidencia">                                        <option value="0"  <% if (request.getParameter("tipoResidencia") == "0") {                                            out.print("selected='selected'");                                        } %> >House                                        </option>                                        <option value="1"  <% if (request.getParameter("tipoResidencia") == "1") {                                            out.print("selected='selected'");                                        } %>>Private village                                        </option>                                        <option value="2"  <% if (request.getParameter("tipoResidencia") == "2") {                                            out.print("selected='selected'");                                        } %>>Apartament                                        </option>                                    </select></td>                                </tr>                                <tr>                                    <td class="c1">Previous claim numbers?</td>                                    <td><select name="sinistros">                                        <option value="0" <% if (request.getParameter("sinistros") == "0") {                                            out.print("selected='selected'");                                        } %>>None                                        </option>                                        <option value="1" <% if (request.getParameter("sinistros") == "1") {                                            out.print("selected='selected'");                                        } %>>1                                        </option>                                        <option value="2" <% if (request.getParameter("sinistros") == "2") {                                            out.print("selected='selected'");                                        } %>>2                                        </option>                                        <option value="3" <% if (request.getParameter("sinistros") == "3") {                                            out.print("selected='selected'");                                        } %>>3                                        </option>                                        <option value="4"<% if (request.getParameter("sinistros") == "4") {                                            out.print("selected='selected'");                                        } %>>4                                        </option>                                        <option value="5"<% if (request.getParameter("sinistros") == "5") {                                            out.print("selected='selected'");                                        } %>>5                                        </option>                                        <option value="6"<% if (request.getParameter("sinistros") == "6") {                                            out.print("selected='selected'");                                        } %>>6                                        </option>                                        <option value="7"<% if (request.getParameter("sinistros") == "7") {                                            out.print("selected='selected'");                                        } %>>7                                        </option>                                        <option value="8"<% if (request.getParameter("sinistros") == "8") {                                            out.print("selected='selected'");                                        } %>>8                                        </option>                                        <option value="9"<% if (request.getParameter("sinistros") == "9") {                                            out.print("selected='selected'");                                        } %>>more than 8                                        </option>                                    </select></td>                                </tr>                            </tbody>                        </table>                    </div>                </td>            </tr>        </tbody>    </table><br/><br/>    <table width="600" border="0" align="center" cellpadding="0"           cellspacing="2" bgcolor="#999999" class="seucorretor6">        <tbody>            <tr class="seucorretor6">                <td align="center" bordercolor="#000000" class="seucorretor2">                    <div align="left"><span class="seucorretor2 seucorretor2"><b>Supplemental                         coverage</b></span></div>                </td>            </tr>            <tr>                <td valign="top" bordercolor="#000000" bgcolor="#FFFFFF">                    <div align="left"><br>                        <table align="center" border="0" cellpadding="2" cellspacing="2"                               width="95%">                            <tbody>                                <tr>                                    <td class="c1" width="50%">Extra car?</td>                                    <td width="50%"><select name="carroReserva">                                        <option value="1" <% if (request.getParameter("carroReserva") == "1") {                                            out.print("selected='selected'");                                        } %>>Yes                                        </option>                                        <option value="0" <% if (request.getParameter("carroReserva") == "0") {                                            out.print("selected='selected'");                                        } %>>No                                        </option>                                    </select> &nbsp;</td>                                </tr>                                <tr>                                    <td class="c1" width="50%">24 hours assistance?</td>                                    <td width="50%"><select name="assistencia24h">                                        <option value="1" <% if (request.getParameter("assistencia24h") == "1") {                                            out.print("selected='selected'");                                        } %>>Yes                                        </option>                                        <option value="0" <% if (request.getParameter("assistencia24h") == "0") {                                            out.print("selected='selected'");                                        } %>>No                                        </option>                                    </select> &nbsp;</td>                                </tr>                                <tr>                                    <td class="c1" width="50%">Glasses coverage?</td>                                    <td width="50%"><select name="vidros">                                        <option value="1" <% if (request.getParameter("vidros") == "1") {                                            out.print("selected='selected'");                                        } %>>Yes                                        </option>                                        <option value="0" <% if (request.getParameter("vidros") == "0") {                                            out.print("selected='selected'");                                        } %> >No                                        </option>                                    </select> &nbsp;</td>                                </tr>                                <tr>                                    <td class="c1" width="50%">Unrelated expenses:</td>                                    <td width="50%"><select name="despExtra">                                        <option value="1" <% if (request.getParameter("despExtra") == "1") {                                            out.print("selected='selected'");                                        } %>>Yes                                        </option>                                        <option value="0" <% if (request.getParameter("despExtra") == "0") {                                            out.print("selected='selected'");                                        } %>>No                                        </option>                                    </select> &nbsp;</td>                                </tr>                            </tbody>                        </table>                    </div>                </td>            </tr>        </tbody>    </table><br/><br/>    <table width="600" border="0" align="center" cellpadding="0"           cellspacing="2" bgcolor="#999999" class="seucorretor6">        <tbody>            <tr class="seucorretor6">                <td align="center" bordercolor="#000000" class="seucorretor2">                    <div align="left"><span class="seucorretor1"><b>Accessories Coverage:</b></span></div>                </td>            </tr>            <tr>                <td valign="top" bordercolor="#000000" bgcolor="#FFFFFF">                    <div align="left"><br>                        <table align="center" border="0" cellpadding="2" cellspacing="2"                               width="95%">                            <tbody>                                <tr>                                    <td class="c5" width="50%"></td>                                    <td class="c5" width="50%">Value ($)</td>                                </tr>                                <tr>                                    <td class="c1" width="50%">Alarm:</td>                                    <td width="50%"><input size="12" name="alarme" onblur="validateMoney(this);"                                                            value="<% out.print(request.getParameter("alarme"));%>"                                                           type="text"> &nbsp;</td>                                </tr>                                <tr>                                    <td class="c1" width="50%">Sound:</td>                                    <td width="50%"><input size="12" name="sistemaSom" onblur="validateMoney(this);"                                                           value="<% out.print(request.getParameter("sistemaSom"));%>"                                                           type="text"> &nbsp;</td>                                </tr>                                <tr>                                    <td class="c1" width="50%">Armor:</td>                                    <td width="50%"><input size="12" name="blindagem" onblur="validateMoney(this);"                                                           value="<% out.print(request.getParameter("blindagem"));%>"                                                           type="text"> &nbsp;</td>                                </tr>                            </tbody>                        </table>                    </div>                </td>            </tr>        </tbody>    </table><p>&nbsp;</p><p><input name="Reset" type="reset" value="Reset"> <input        type="submit" value="Continue"></p></form><%    try {        if (request.getParameter("calculo") != null) {%>tabe<table width="600" border="0" align="center" cellpadding="0"       cellspacing="2" bgcolor="#999999" class="seucorretor6">    <tbody>        <tr class="seucorretor6">            <td align="center" bordercolor="#000000" class="seucorretor2">                <div align="left"><span class="seucorretor2 seucorretor2"><b>Insurance Calcule</b></span></div>            </td>        </tr>        <tr>            <td valign="top" bordercolor="#000000" bgcolor="#FFFFFF">                <div align="left"><br>                    <table align="center" border="0" cellpadding="2" cellspacing="2"                           width="95%">                        <tbody>                            <tr>                                <td class="c1" width="50%">is Approved</td>                                <td width="50%"><% out.print(request.getParameter("aprovado")); %></td>                            </tr>                            <tr>                                <td class="c1" width="50%">Insurance risk Factor</td>                                <td width="50%"><% out.print(request.getParameter("fatorrisco"));%></td>                            </tr>                            <tr>                                <td class="c1" width="50%">Base insurance Price</td>                                <td width="50%"><% out.print(request.getParameter("base")); %></td>                            </tr>                            <tr>                                <td class="c1" width="50%">Final Insurance price</td>                                <td width="50%"><b><% out.print(request.getParameter("valor")); %></b></td>                            </tr>                        </tbody>                    </table>                </div>            </td>        </tr>    </tbody></table><%    }} catch (Exception e) {%><%    }%><p>&nbsp;</p><p><br></p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -