使用struts,怎么用request.getAttribute()取得List

本文详细介绍了如何在JSP和Servlet之间进行数据传递,包括使用request和session对象的方法,并解释了getParameter()与getAttribute()的区别及应用场景。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问:

在action中,将List通过request.setAttribute()存放,在jsp中通过request.getAttribute却得不到,怎么解决?传统的方式logic:iterator的方式怎么实现在jsp中显示集合元素

 

答:

这样加入到Context里:   
  List   list   =   new   List();   
  ServletContext   context   =   this.servlet.getServletContext();   
  context.setAttribute("list",   list);   
  这样得到:   
  List   list   =   (List)getServlet().getServletContext().getAttribute("list");

另外,http://zhidao.baidu.com/question/57874470.html

getParameter()获得的是url中传递的参数,当HTML的form表单为post时,这些参数会隐式的进行传递,其获得的对象为String. 

getAttribute()获得的是Action或Servlet处理后返回给页面的信息,在页面中可以用getAttribute()来获得.正如楼上所说,获得的是由setAttribute()方法赋的值,返回值是Object. 

在做具体项目时,每个项目都会有查询功能,简单来说: 
在查询页面点击查询按纽时,将form表单信息提交给处理类,处理类使用getParameter()获得.然后处理类操作DB找到匹配的记录结果集,然后使用request.setAttribute("list",list)方法将结果集暂存于request返回给查询页面,在查询页面中使用request.getAttribute("list")方法获得结果集,然后循环List输出结果到页面.

 

总结 JSP与 servlet之间的传值

JSP与 servlet之间的传值有两种情况:JSP -> servlet, servlet -> JSP。
通过对象 request和 session (不考虑 application)完成传值。

一、JSP -> servlet
JSP页面有3种方法向 servlet传值: form表单、URL 、其他

<!--  JSP page  -->
...
<% ...
       session.setAttribute(
"testSession","Hello session");
       reqeust.setAttribute(
"testRequest","Hello request");
%>
< href ="JspServlet?action=toServlet" >click me </ a >
< form  action ="JspServlet?action=toServlet"  method ="post"  name ="form" >
        < input  name ="username"  type ="test"   />
        < input  type ="submit"  value ="submit" >
</ form >
...

 

1、对于该JSP页面 form表单的内容,如 <input>标签,在 servlet可用 request.getParameter("username");获取。
2、URL:比如这里的 <a>标签的 href属性与 <form>标签的 action属性的值 "JspServlet?action=toServlet",在 servlet同样用 request.getParameter("action")获取;所要注意的是这里的 url 要和 servlet在web.xml里的 <url-pattern>标签的路径所对应。这部分后面会提到。
3、java片段代码,servlet只能接到 session.setAttribute("testSession","Hello session")的内容,而接不到 request的内容。在 servlet里用 request.getSession().getAttribute("testSession")获取 session内容。

二、Servlet
1、关于 servlet,首先要提到它在 web.xml里的注册内容,如

     < servlet-name >JspServlet1 </ servlet-name >
         < servlet-class >com.demo.JspServletDemo </ servlet-class >
     </ servlet >
     < servlet-mapping >
         < servlet-name >JspServlet1 </ servlet-name >
         < url-pattern >/JspServlet </ url-pattern >
     </ servlet-mapping >

     < servlet-name >JspServlet2 </ servlet-name >
         < servlet-class >com.demo.JspServletDemo </ servlet-class >
     </ servlet >
     < servlet-mapping >
         < servlet-name >JspServlet2 </ servlet-name >
         < url-pattern >/admin/JspServlet </ url-pattern >
     </ servlet-mapping >


假如 project name 是 jsp2servlet,则该 project根目录的 Context是 /jsp2servlet,在地址栏里显示是 http://localhost:8080/jsp2servlet/
在 project 根目录下有 admin目录,对应的 Context是/admin/jsp2servlet,在地址栏里显示是 http://localhost:8080/jsp2servlet/admin

在这两个目录下的 jsp 都想转到 com.demo.JspServletDemo类做处理,这时的 url需要在 web.xml注册两次。
    1)在 
http://localhost:8080/jsp2servlet/ 目录下的 jsp 页面 JspServlet1,url应写为 "JspServlet"
    2)在 
http://localhost:8080/jsp2servlet/admin/ 目录下的 jsp 页面访问 JspServlet2,url应写为 "admin/JspServlet"

2、在 servlet直接用 request对象,得到发送来的请求内容;用 request.getSession(),得到 session对象,从而得到会话内容。

这里的 request.getSession()的参数为 boolean 类型,该方法意思可理解为:

session可以认为是每一个IE进程对应一个会话(新开一个IE进程就可以对应两个会话的),getSession都是返回当前用户的会话对象,参数的区别在于:
参数为true (默认),则如果“当前用户的会话对象”为空(第一次访问时)则创建一个新的会话对象返回;
参数为false,则如果“当前用户的会话对象”为空,则返回 null (即不自动创建会话对象)。

利用这个方法可以判断 session是否过期,如下:

if(request.getSession( false)== null)
   System.out.println("Session has been invalidated!");
else
   System.out.println("Session is active!");

三、Servlet -> JSP
从 servlet转到 jsp不外乎两种方法,重定向 和 url转发

1、重定向 ( Redirect):是路径的跳转,内容和 url都改变。不允许带 request参数( session参数可以),即不允许在 servlet里给 request对象使用setAttribute方法传给下一页面。在 servlet里使用 response.sendRedirect(url) 方法。注意这里的 url前不带斜线 /,如 response.sendRedirect(”test.jsp“)

2、url转发 ( Forward):是页面的跳转,页面内容发生改变,url不变。可以带 request和 session参数。在 servlet里使用 getServletConfig().getServletContext().getRequestDispatcher(url).forward(request, response)。而这里的 url前需要带斜线 /,如getServletConfig().getServletContext().getRequestDispatcher(”/test.jsp“).forward(request, response)

<%@ page contentType=“text/html; charset=UTF-8”%> <%@ taglib uri=“/WEB-INF/struts-logic.tld” prefix=“logic”%> <%@ taglib uri=“/WEB-INF/struts-bean.tld” prefix=“bean”%> <%@ taglib uri=“/WEB-INF/struts-html.tld” prefix=“html”%> <%@ taglib uri=“/WEB-INF/app.tld” prefix=“app”%> <%@page import=“java.util.List”%> <input name=“riskCode” type=“hidden” value=“<%=request.getAttribute(“riskCode”)%>”> <input name=“planCode” type=“hidden” value=“<%=request.getAttribute(“planCode”)%>”> <input name=“itemNo” type=“hidden” value=“<%=request.getAttribute(“itemNo”)%>”> <input name=“maxGuItemKindItemKindNo” type=“hidden” value=“<%=request.getAttribute(“maxItemKindNo”)%>” /> <input name=“maxGuKindLimitSerialNo” type=“hidden” value=“<%=request.getAttribute(“maxGuKindLimitSerialNo”)%>” /> <input name=“maxGuKindDeductibleDeductibleNo” type=“hidden” value=“<%=request.getAttribute(“maxGuKindDeductibleDeductibleNo”)%>” /> <jsp:include page=“/prpall/plugin/common/riskclass/99/thirdAndMainKind/ItemEngineeringKind_Data.jsp”/> <jsp:include page=“/prpall/plugin/common/riskclass/07/itemengineering/ThirdKindLimitKind_Data.jsp” /> <jsp:include page=“/prpall/plugin/common/riskclass/07/itemengineering/SubKindLimitKind_Data.jsp” /> <jsp:include page=“/prpall/plugin/common/riskclass/07/itemengineering/ItemEngineeringLimit_Data.jsp” /> <script type="text/javascript"> var GuKindLimitLimitA ="<bean:message key="GuKindLimitDto.LimitLimit"/>"; </script> <!-- 物质损失 --> <input name="SubOrThirdFlag" type="hidden" value = "0"> <table id="ItemKind" name="ItemKind" class="common" cellpadding="1" cellspacing="1" border="0"> <thead> <tr style="display: none"> <td width="18%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="12%" align="center"> </td> <td width="12%" align="center"> </td> <td width="13%" align="center"> </td> </tr> <tr class="top01"> <td align="left" colspan="9"><strong><bean:message key="GuItemKindDto.kindName" /></strong></td> </tr> <tr> <!-- 机身损失 --> <td class="left" colspan="9"><strong> <bean:message key="prompt.materialFuselageLoss"/> <%-- 第一部分:机身损失--%> </strong></td> </tr> <tr> <td width="18%" class="white" align="center"><bean:message key="GuItemKindDto.itemCode" /> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.numberSumInsured"/> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.sumInsured" /> <font color="red">*</font></td> <logic:equal name='ggRiskDto' property='calculator' value='100'> <TD class="white" align="center" width="9%"><bean:message key="GuItemKindDto.rate"/>(%) <font color="red">*</font></TD> </logic:equal> <logic:notEqual name='ggRiskDto' property='calculator' value='100'> <TD class="white" align="center" width="9%"><bean:message key="GuItemKindDto.rate"/>(‰) <font color="red">*</font></TD> </logic:notEqual> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.shortRateFlag" /> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.shortRate" /></td> <td width="12%" class="white" align="center"><bean:message key="GuItemKindDto.uwPremium" /></td> <td width="12%" class="white" align="center"><bean:message key="GuItemKindDto.grossPremium" /> <font color="red">*</font></td> <td width="13%" class="white" align="center"></td> </tr> </thead> <tbody> <bean:size id="listMainItemLength" name="guItemKindMainList" /> <% List guItemKindDtoList = (List) request.getAttribute("guItemKindMainList"); if (guItemKindDtoList != null) { int lengthList = guItemKindDtoList.size(); for (int index = 0; index < lengthList; index++) { request.setAttribute("guItemKindDto", guItemKindDtoList.get(index)); %> <logic:notEmpty name = "guItemKindDto" property="itemDetailCode"> <logic:equal parameter="businessType" value="Endor"> <bean:define name="guItemKindDto" property="guPolicyItemKindDto" id="guPolicyItemKindDto" /> </logic:equal> <tr> <td class="white"> <input name="GuItemKindFlag" type="hidden" endorFlag="B" value="<bean:write name='guItemKindDto' property='flag'/>" title="<bean:write name='guPolicyItemKindDto' property='flag'/>" > <input name="GuItemKindProjectCode" type="hidden" value="<bean:write name='guItemKindDto' property='projectCode'/>"> <logic:present name="guItemKindDto" property="subProposalNo"> <input name="GuItemKindSubProposalNo" type="hidden" value="<bean:write name='guItemKindDto' property='subProposalNo'/>"> </logic:present> <logic:present name="guItemKindDto" property="countFlag"> <logic:notEqual name="guItemKindDto" property="countFlag" value="0"> <input name="GuItemKindCountFlag" type="hidden" value="<bean:write name='guItemKindDto' property='countFlag'/>"> </logic:notEqual> </logic:present> <input name="GuItemKindSurrenderInd" type="hidden" value="0"> <input name="GuItemKindItemNo" type="hidden" value="<%=request.getAttribute("itemNo")%>"> <input name="GuItemKindItemDetailNo" type="hidden" value="<bean:write name='guItemKindDto' property='itemDetailNo'/>"> <input name="GuItemKindKindCode" type="hidden" value="<bean:write name='guItemKindDto' property='kindCode'/>"> <input name="GuItemKindKindName" type="hidden" value="<bean:write name='guItemKindDto' property='kindName'/>"> <input name="GuItemKindPlanCode" type="hidden" value="<bean:write name='guItemKindDto' property='planCode'/>"> <input name="GuItemKindRiskCode" type="hidden" value="<bean:write name='guItemKindDto' property='riskCode'/>"> <input name="GuItemKindCompanyCode" type="hidden" value="<%=request.getAttribute("companyCode")%>"> <input name="GuItemKindItemCode" type="hidden" value="<bean:write name='guItemKindDto' property='itemCode'/>"> <input name="GuItemKindStartDate" type="hidden" value="<bean:write name='guItemKindDto' property='startDate'/>" title="<bean:write name='guPolicyItemKindDto' property='startDate'/>"> <input name="GuItemKindEndDate" type="hidden" value="<bean:write name='guItemKindDto' property='endDate'/>" title="<bean:write name='guPolicyItemKindDto' property='endDate'/>"> <input name="GuItemKindCurrency" type="hidden" value="<bean:write name='guItemKindDto' property='currency'/>" title="<bean:write name='guPolicyItemKindDto' property='currency'/>" > <input name="GuItemKindItemKindNo" type="hidden" title="<bean:write name='guItemKindDto' property='itemKindNo'/>" value="<bean:write name='guItemKindDto' property='itemKindNo'/>"> <input name="GuItemKindReSpecialInd" type="hidden" value="<bean:write name='guItemKindDto' property='reSpecialInd'/>"> <input name="GuItemKindItemDetailCode" class="codecode" type="text" style="width: 30%" title="<bean:write name='guPolicyItemKindDto' property='itemDetailCode'/>" value="<bean:write name='guItemKindDto' property='itemDetailCode'/>" ondblclick="getField(this, 'ItemKind', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeSelect(this,'itemDetailCodeByRiskCode','0,1,1,3,4,8,9','Y','riskCode=<%=request.getAttribute("riskCode")%>','setGuItemKindItemDetailCodeOnchange();');" onkeyup="getField(this, 'ItemKind', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeSelect(this,'itemDetailCodeByRiskCode','0,1,1,3,4,8,9','Y','riskCode=<%=request.getAttribute("riskCode")%>','setGuItemKindItemDetailCodeOnchange();');" onchange="getField(this, 'ItemKind', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeChange(this,'itemDetailCodeByRiskCode','0,1,1,3,4,8,9','Y','riskCode=<%=request.getAttribute("riskCode")%>','setGuItemKindItemDetailCodeOnchange();');"> <input name="GuItemKindItemDetailList" class="codename" type="text" style="width: 65%" title="<bean:write name='guPolicyItemKindDto' property='itemDetailList'/>" value="<bean:write name='guItemKindDto' property='itemDetailList'/>"> <input name="GuItemKindKindInd" type="hidden" value="<bean:write name='guItemKindDto' property='kindInd'/>"> </td> <td class="white"> <input name="GuItemKindCalculateInd" class="codecode" type="text" style="width:30%" title="<bean:write name='guPolicyItemKindDto' property='calculateInd'/>" value="<bean:write name='guItemKindDto' property='calculateInd'/>" ondblclick="getField(this,'ItemKind');code_CodeSelect(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');" onkeyup="getField(this,'ItemKind');code_CodeSelect(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');" onchange="getField(this,'ItemKind');code_CodeChange(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');"> <input name="GuItemKindCalculateIndName" class="readonly" type="text" style="width:65%" readonly title="<app:localeName name="guPolicyItemKindDto" property="calculateInd,CalculateInd" codeType="ggCodeCodeName" filter="true" />" value="<app:localeName name="guItemKindDto" property="calculateInd,CalculateInd" codeType="ggCodeCodeName" filter="true" />"> </td> <td class="white"> <input name="GuItemKindSumInsured" class="common01" type="text" style="width: 100%" title="<bean:write name='guPolicyItemKindDto' property='sumInsured'/>" value="<bean:write name='guItemKindDto' property='sumInsured'/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','')"> </td> <td class="white"> <input name="GuItemKindRate" class="common01" type="text" style="width: 100%" title="<bean:write name='guPolicyItemKindDto' property='rate' format="#,##0.000000"/>" value="<bean:write name='guItemKindDto' property='rate' format="#,##0.000000"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','')"> <input name="GuCalculator" type="hidden" value="100"> </td> <td class="white"> <input name="GuItemKindShortRateFlag" class="codecode" type="text" style="width: 30%" title="<bean:write name='guPolicyItemKindDto' property='shortRateFlag'/>" value="<bean:write name='guItemKindDto' property='shortRateFlag'/>" ondblclick="getField(this, 'ItemKind', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeSelect(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');" onkeyup="getField(this, 'ItemKind', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeSelect(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');" onchange="getField(this, 'ItemKind', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeChange(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');"> <input name="GuItemKindShortRateFlagName" class="readonly" type="text" style="width: 65%" readonly title="<app:localeName name="guItemKindDto" property="shortRateFlag,ShortRateFlag" codeType="ggCodeCodeName" filter="true" />" value="<app:localeName name="guItemKindDto" property="shortRateFlag,ShortRateFlag" codeType="ggCodeCodeName" filter="true" />"> </td> <td class="white"> <input name="GuItemKindShortRate" type="hidden" value="<bean:write name='guItemKindDto' property='shortRate' format="0.00"/>" title="<bean:write name='guPolicyItemKindDto' property='shortRate' format="0.00"/>"> <input name="GuItemKindShortRateNumerator" class="common01" readonly="readonly" type="text" style="width: 42%" value="<bean:write name='guItemKindDto' property='shortRateNumerator' format="#"/>" title="<bean:write name='guPolicyItemKindDto' property='shortRateNumerator' format="#"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','')">/ <input name="GuItemKindShortRateDenominator" class="common01" readonly="readonly" type="text" style="width: 42%" value="<bean:write name='guItemKindDto' property='shortRateDenominator'/>" title="<bean:write name='guPolicyItemKindDto' property='shortRateDenominator'/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','')"> </td> <td class="white"> <input name="GuItemKindUwPremium" class="readonly" type="text" style="width:100%" readonly title="<bean:write name='guPolicyItemKindDto' property='uwPremium'/>" value="<bean:write name='guItemKindDto' property='uwPremium'/>" onchange=" "> <input name="GuItemKindOriginUWPremium" class="common01" type="hidden" style="width: 100%" value="<bean:write name='guItemKindDto' property='originUWPremium'/>"> </td> <td class="white"> <input name="GuItemKindGrossPremium" class="common" type="text" style="width: 100%" title="<bean:write name='guPolicyItemKindDto' property='grossPremium'/>" value="<bean:write name='guItemKindDto' property='grossPremium'/>" onchange=" "> <input name="GuItemKindOriginGrossPremium" class="common01" type="hidden" value="<bean:write name='guItemKindDto' property='originGrossPremium'/>"> </td> <td class="white" align="center"> <INPUT name="button_ItemKind_Delete" class="smallbutton" type="button" value="<bean:message key="button.delete"/>" ind="ind" onclick="deleteRowInTable(this,'ItemKind','1',1);afterEndorDeleteItemKind(this, '');"> </td> </tr> </logic:notEmpty> <% } } %> </tbody> <tfoot> <TR> <TD class="title02" colspan="9"> <P align="left"><input name="button_ItemKind_Insert" class="button" type="button" style="cursor:hand" ind="ind" value="<bean:message key='button.add'/>" onclick="insertRowInTable(this,'ItemKind',1);"> </P> </TD> </TR> </tfoot> </table> <!-- 特种风险赔偿限额 --> <logic:notEqual name=‘ggRiskDto’ property=‘riskCode’ value=‘9929’> <jsp:include page=“/prpall/plugin/common/riskclass/07/itemengineering/ItemEngineeringLimit.jsp” /> </logic:notEqual> <!-- 第三者责任 --> <table id="ItemKindThird" name="ItemKindThird" class="common" cellpadding="1" cellspacing="1"> <thead> <tr style="display: none"> <td width="18%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="12%" align="center"> </td> <td width="12%" align="center"> </td> <td width="13%" align="center"> </td> </tr> <tr> <td class="left" colspan="9"><strong><bean:message key="prompt.thirdPartyLibility2"/></strong></td> </tr> <tr> <td width="18%" class="white" align="center"><bean:message key="GuItemKindDto.kindCode" /> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.numberSumInsured"/> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.thirdSumInsured" /> <font color="red">*</font></td> <logic:equal name='ggRiskDto' property='calculator' value='100'> <TD class="white" align="center" width="9%"><bean:message key="GuItemKindDto.rate"/>(%) <font color="red">*</font></TD> </logic:equal> <logic:notEqual name='ggRiskDto' property='calculator' value='100'> <TD class="white" align="center" width="9%"><bean:message key="GuItemKindDto.rate"/>(‰) <font color="red">*</font></TD> </logic:notEqual> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.shortRateFlag" /> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.shortRate" /></td> <td width="12%" class="white" align="center"><bean:message key="GuItemKindDto.uwPremium" /></td> <td width="12%" class="white" align="center"><bean:message key="GuItemKindDto.grossPremium" /> <font color="red">*</font></td> <td width="13%" class="white" align="center"></td> </tr> </thead> <tbody> <% List guThirdItemKindDtoList = (List) request.getAttribute("guItemKindThirdList"); if (guThirdItemKindDtoList != null) { int lengthThirdList = guThirdItemKindDtoList.size(); for (int index = 0; index < lengthThirdList; index++) { request.setAttribute("guThirdItemKindDto", guThirdItemKindDtoList.get(index)); %> <logic:notEmpty name = "guThirdItemKindDto" property="sumInsured"> <logic:equal parameter="businessType" value="Endor"> <bean:define name="guThirdItemKindDto" property="guPolicyItemKindDto" id="thirdGuPolicyItemKindDto" /> </logic:equal> <tr> <td class="white"> <input name="ThirdGuItemKindFlag" type="hidden" endorFlag="B" value="<bean:write name='guThirdItemKindDto' property='flag'/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='flag'/>"> <input name="ThirdGuItemKindProjectCode" type="hidden" value="<bean:write name='guThirdItemKindDto' property='projectCode'/>"> <input name="ThirdGuItemKindKindCode" class="codecode" type="text" style="width: 30%" readonly title="<bean:write name='thirdGuPolicyItemKindDto' property='kindCode'/>" value="<bean:write name='guThirdItemKindDto' property='kindCode'/>"> <input name="ThirdGuItemKindKindName" class="readonly" type="text" style="width: 65%" readonly title="<bean:write name='thirdGuPolicyItemKindDto' property='kindName'/>" value="<bean:write name='guThirdItemKindDto' property='kindName'/>"> <logic:present name="guThirdItemKindDto" property="subProposalNo"> <input name="ThirdGuItemKindSubProposalNo" type="hidden" value="<bean:write name='guThirdItemKindDto' property='subProposalNo'/>"> </logic:present> <logic:present name="guThirdItemKindDto" property="countFlag"> <logic:notEqual name="guThirdItemKindDto" property="countFlag" value="0"> <input name="ThirdGuItemKindCountFlag" type="hidden" value="<bean:write name='guThirdItemKindDto' property='countFlag'/>"> </logic:notEqual> </logic:present> <input name="ThirdGuItemKindSurrenderInd" type="hidden" value="0"> <input name="ThirdGuItemKindItemNo" type="hidden" value="<%=request.getAttribute("itemNo")%>"> <input name="ThirdGuItemKindItemDetailNo" type="hidden" value="0"> <input name="ThirdGuItemKindPlanCode" type="hidden" value="<bean:write name='guThirdItemKindDto' property='planCode'/>"> <input name="ThirdGuItemKindRiskCode" type="hidden" value="<bean:write name='guThirdItemKindDto' property='riskCode'/>"> <input name="ThirdGuItemKindCompanyCode" type="hidden" value="<%=request.getAttribute("companyCode")%>"> <input name="ThirdGuItemKindItemCode" type="hidden" value="<bean:write name='guThirdItemKindDto' property='itemCode'/>"> <input name="ThirdGuItemKindReSpecialInd" type="hidden" value="<bean:write name='guThirdItemKindDto' property='reSpecialInd'/>"> <input name="ThirdGuItemKindStartDate" type="hidden" value="<bean:write name='guThirdItemKindDto' property='startDate'/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='startDate'/>"> <input name="ThirdGuItemKindEndDate" type="hidden" value="<bean:write name='guThirdItemKindDto' property='endDate'/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='endDate'/>"> <input name="ThirdGuItemKindCurrency" type="hidden" onchange=" " value="<bean:write name='guThirdItemKindDto' property='currency'/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='currency'/>" > <input name="ThirdGuItemKindItemKindNo" type="hidden" title="<bean:write name='thirdGuPolicyItemKindDto' property='itemKindNo'/>" value="<bean:write name='guThirdItemKindDto' property='itemKindNo'/>"> <input name="ThirdGuItemKindItemDetailCode" class="codecode" type="text" style="display:none;width: 30%" title="<bean:write name='thirdGuPolicyItemKindDto' property='itemDetailCode'/>" value="<bean:write name='guThirdItemKindDto' property='itemDetailCode'/>" ondblclick="getField(this, 'ItemKindThird', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeSelect(this,'itemDetailCodeByRiskCode','0,1','Y','riskCode=<%=request.getAttribute("riskCode")%>','');" onkeyup="getField(this, 'ItemKindThird', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeSelect(this,'itemDetailCodeByRiskCode','0,1','Y','riskCode=<%=request.getAttribute("riskCode")%>','');" onchange="getField(this, 'ItemKindThird', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeChange(this,'itemDetailCodeByRiskCode','0,1','Y','riskCode=<%=request.getAttribute("riskCode")%>','');"> <input name="ThirdGuItemKindItemDetailList" class="readonly" type="text" style="display:none;width: 65%" readonly title="<bean:write name='thirdGuPolicyItemKindDto' property='itemDetailList'/>" value="<bean:write name='guThirdItemKindDto' property='itemDetailList'/>"> <input name="ThirdGuItemKindKindInd" type="hidden" value="<bean:write name='guThirdItemKindDto' property='kindInd'/>"> </td> <td class="white"> <input name="ThirdGuItemKindCalculateInd" class="codecode" type="text" style="width:30%" title="<bean:write name='thirdGuPolicyItemKindDto' property='calculateInd'/>" value="<bean:write name='guThirdItemKindDto' property='calculateInd'/>" ondblclick="getField(this,'ItemKindThird');code_CodeSelect(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');" onkeyup="getField(this,'ItemKindThird');code_CodeSelect(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');" onchange="getField(this,'ItemKindThird');code_CodeChange(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');"> <input name="ThirdGuItemKindCalculateIndName" class="readonly" type="text" style="width:65%" readonly title="<app:localeName name="thirdGuPolicyItemKindDto" property="calculateInd,CalculateInd" codeType="ggCodeCodeName" filter="true" />" value="<app:localeName name="guThirdItemKindDto" property="calculateInd,CalculateInd" codeType="ggCodeCodeName" filter="true" />"> </td> <td class="white"> <input name="ThirdGuItemKindSumInsured" class="common01" type="text" style="width: 100%" title="<bean:write name='thirdGuPolicyItemKindDto' property='sumInsured'/>" value="<bean:write name='guThirdItemKindDto' property='sumInsured'/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Third');"> </td> <td class="white"> <input name="ThirdGuItemKindRate" class="common01" type="text" style="width: 100%" title="<bean:write name='thirdGuPolicyItemKindDto' property='rate' format="#,##0.000000"/>" value="<bean:write name='guThirdItemKindDto' property='rate' format="#,##0.000000"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Third');"> <input name="GuCalculator" type="hidden" value="100"> </td> <td class="white"> <input name="ThirdGuItemKindShortRateFlag" class="codecode" type="text" style="width: 30%" title="<bean:write name='thirdGuPolicyItemKindDto' property='shortRateFlag'/>" value="<bean:write name='guThirdItemKindDto' property='shortRateFlag'/>" ondblclick="getField(this, 'ItemKindThird', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeSelect(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');" onkeyup="getField(this, 'ItemKindThird', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeSelect(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');" onchange="getField(this, 'ItemKindThird', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeChange(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');"> <input name="ThirdGuItemKindShortRateFlagName" class="common01" type="text" style="width: 65%" readonly title="<app:localeName name="thirdGuPolicyItemKindDto" property="shortRateFlag,ShortRateFlag" codeType="ggCodeCodeName" filter="true" />" value="<app:localeName name="guThirdItemKindDto" property="shortRateFlag,ShortRateFlag" codeType="ggCodeCodeName" filter="true" />"> </td> <td class="white"> <input name="ThirdGuItemKindShortRate" type="hidden" value="<bean:write name='guThirdItemKindDto' property='shortRate' format="0.00"/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='shortRate' format="0.00"/>"> <input name="ThirdGuItemKindShortRateNumerator" class="common01" readonly="readonly" type="text" style="width: 42%" value="<bean:write name='guThirdItemKindDto' property='shortRateNumerator' format="#"/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='shortRateNumerator' format="#"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Third');">/ <input name="ThirdGuItemKindShortRateDenominator" class="common01" readonly="readonly" type="text" style="width: 42%" value="<bean:write name='guThirdItemKindDto' property='shortRateDenominator' format="#"/>" title="<bean:write name='thirdGuPolicyItemKindDto' property='shortRateDenominator' format="#"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Third');"> </td> <td class="white"> <input name="ThirdGuItemKindUwPremium" class="readonly" type="text" style="width: 100%" readonly title="<bean:write name='thirdGuPolicyItemKindDto' property='uwPremium'/>" value="<bean:write name='guThirdItemKindDto' property='uwPremium'/>" onchange=" "> <input name="ThirdGuItemKindOriginUWPremium" class="common01" type="hidden" style="width: 100%" value="<bean:write name='guThirdItemKindDto' property='originUWPremium'/>"> </td> <td class="white"> <input name="ThirdGuItemKindGrossPremium" class="common01" type="text" style="width: 100%" title="<bean:write name='thirdGuPolicyItemKindDto' property='grossPremium'/>" value="<bean:write name='guThirdItemKindDto' property='grossPremium'/>" onchange=""> <input name="ThirdGuItemKindOriginGrossPremium" class="common01" type="hidden" value="<bean:write name='guThirdItemKindDto' property='originGrossPremium'/>"> </td> <td class="white" align="center"> <input name="button_ThirdKindLimitKind_Edit" class="smallbutton" type="button" style="cursor: hand" value="<bean:message key="button.limit"/>" onclick="showSubPageForPrpall(this,'span_ThirdKindLimitKind_SubPage');"> <SPAN id="span_ThirdKindLimitKind_SubPage" name="span_ThirdKindLimitKind_SubPage" style="display: none; position: absolute; width: 790; background-color: FFFFFF;"> <jsp:include page="/prpall/plugin/common/riskclass/07/itemengineering/ThirdKindLimitKind.jsp" /> </SPAN> <INPUT name="button_ItemKindThird_Delete" class="smallbutton" type="button" value="<bean:message key="button.delete"/>" ind="ind" onclick="deleteRowInTable(this,'ItemKindThird',1,1);afterEndorDeleteItemKind(this, 'Third', '')"> </td> </tr> </logic:notEmpty> <% } } %> </tbody> <tfoot> <TR> <TD class="title02" colspan="9"> <P align="left"><input name="button_ItemKindThird_Insert" class="button" type="button" style="cursor:hand" ind="ind" value="<bean:message key='button.add'/>" onclick="insertEngineeringThridItemKind(this, 'ItemKindThird', 1, '<bean:message key='alert.message.aThirdKindOfAItem' />')"> </P> </TD> </TR> </tfoot> </table> <!--附加险 --> <table id="ItemKindSub" name="ItemKindSub" class="common" cellpadding="1" cellspacing="1"> <thead> <tr style="display: none"> <td width="18%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="9%" align="center"> </td> <td width="12%" align="center"> </td> <td width="12%" align="center"> </td> <td width="13%" align="center"> </td> </tr> <tr> <td class="left" colspan="9"><strong><bean:message key="GuItemKindDto.subKind"/></strong></td> </tr> <tr> <td width="18%" class="white" align="center"><bean:message key="GuItemKindDto.kindCode" /> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.numberSumInsured"/> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.thirdSumInsured" /> <font color="red">*</font></td> <logic:equal name='ggRiskDto' property='calculator' value='100'> <TD class="white" align="center" width="9%"><bean:message key="GuItemKindDto.rate"/>(%) <font color="red">*</font></TD> </logic:equal> <logic:notEqual name='ggRiskDto' property='calculator' value='100'> <TD class="white" align="center" width="9%"><bean:message key="GuItemKindDto.rate"/>(‰) <font color="red">*</font></TD> </logic:notEqual> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.shortRateFlag" /> <font color="red">*</font></td> <td width="9%" class="white" align="center"><bean:message key="GuItemKindDto.shortRate" /></td> <td width="12%" class="white" align="center"><bean:message key="GuItemKindDto.uwPremium" /></td> <td width="12%" class="white" align="center"><bean:message key="GuItemKindDto.grossPremium" /> <font color="red">*</font></td> <td width="13%" class="white" align="center"></td> </tr> </thead> <tbody> <% List guSubItemKindDtoList = (List) request.getAttribute("guItemKindSubList"); if (guSubItemKindDtoList != null) { int lengthSubList = guSubItemKindDtoList.size(); for (int index = 0; index < lengthSubList; index++) { request.setAttribute("subGuItemKindDto", guSubItemKindDtoList.get(index)); %> <logic:notEmpty name="subGuItemKindDto" property="sumInsured"> <logic:equal parameter="businessType" value="Endor"> <bean:define name="subGuItemKindDto" property="guPolicyItemKindDto" id="subGuPolicyItemKindDto" /> </logic:equal> <tr> <td class="white"> <input name="SubGuItemKindFlag" type="hidden" endorFlag="B" value="<bean:write name='subGuItemKindDto' property='flag'/>" title="<bean:write name='subGuPolicyItemKindDto' property='flag' filter='true'/>"> <input name="SubGuItemKindProjectCode" type="hidden" value="<bean:write name='subGuItemKindDto' property='projectCode'/>"> <logic:present name="subGuItemKindDto" property="subProposalNo"> <input name="SubGuItemKindSubProposalNo" type="hidden" value="<bean:write name='subGuItemKindDto' property='subProposalNo'/>"> </logic:present> <logic:present name="subGuItemKindDto" property="countFlag"> <logic:notEqual name="subGuItemKindDto" property="countFlag" value="0"> <input name="SubGuItemKindCountFlag" type="hidden" value="<bean:write name='subGuItemKindDto' property='countFlag'/>"> </logic:notEqual> </logic:present> <input name="SubGuItemKindSurrenderInd" type="hidden" value="0"> <input name="SubGuItemKindItemNo" type="hidden" value="<%=request.getAttribute("itemNo")%>"> <input name="SubGuItemKindItemDetailNo" type="hidden" value="0"> <input name="SubGuItemKindPlanCode" type="hidden" value="<bean:write name='subGuItemKindDto' property='planCode'/>"> <input name="SubGuItemKindRiskCode" type="hidden" value="<bean:write name='subGuItemKindDto' property='riskCode'/>"> <input name="SubGuItemKindCompanyCode" type="hidden" value="<%=request.getAttribute("companyCode")%>"> <input name="SubGuItemKindItemCode" type="hidden" value="<bean:write name='subGuItemKindDto' property='itemCode'/>"> <input name="SubGuItemKindReSpecialInd" type="hidden" value="<bean:write name='subGuItemKindDto' property='reSpecialInd'/>"> <input name="SubGuItemKindStartDate" type="hidden" value="<bean:write name='subGuItemKindDto' property='startDate'/>" title="<bean:write name='subGuPolicyItemKindDto' property='startDate'/>"> <input name="SubGuItemKindEndDate" type="hidden" value="<bean:write name='subGuItemKindDto' property='endDate'/>" title="<bean:write name='subGuPolicyItemKindDto' property='endDate'/>"> <input name="SubGuItemKindDiscount" type="hidden" value="<bean:write name='subGuItemKindDto' property='discount'/>"> <input name="SubGuItemKindCurrency" type="hidden" onchange=" " value="<bean:write name='subGuItemKindDto' property='currency'/>" title="<bean:write name='subGuPolicyItemKindDto' property='currency'/>" > <input name="SubGuItemKindItemKindNo" type="hidden" title="<bean:write name='subGuPolicyItemKindDto' property='itemKindNo'/>" value="<bean:write name='subGuItemKindDto' property='itemKindNo'/>"> <input name="SubGuItemKindItemDetailCode" class="codecode" type="text" style="display:none;width: 30%" title="<bean:write name='subGuPolicyItemKindDto' property='itemDetailCode'/>" value="<bean:write name='subGuItemKindDto' property='itemDetailCode'/>" ondblclick="getField(this, 'ItemKindSub', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeSelect(this,'itemDetailCodeByRiskCode','0,1','Y','riskCode=<%=request.getAttribute("riskCode")%>','');" onkeyup="getField(this, 'ItemKindSub', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeSelect(this,'itemDetailCodeByRiskCode','0,1','Y','riskCode=<%=request.getAttribute("riskCode")%>','');" onchange="getField(this, 'ItemKindSub', '<bean:message key='alert.message.sameItemDetailCode' />');code_CodeChange(this,'itemDetailCodeByRiskCode','0,1','Y','riskCode=<%=request.getAttribute("riskCode")%>','');"> <input name="SubGuItemKindItemDetailList" class="readonly" type="text" style="display:none;width: 65%" readonly title="<bean:write name='subGuPolicyItemKindDto' property='itemDetailList'/>" value="<bean:write name='subGuItemKindDto' property='itemDetailList'/>"> <input name="SubGuItemKindKindCode" class="codecode" type="text" style="width:30%" title="<bean:write name='subGuPolicyItemKindDto' property='kindCode'/>" value="<bean:write name='subGuItemKindDto' property='kindCode'/>" ondblclick="getField(this, 'ItemKindSub', '<bean:message key='alert.message.itemkind' />');code_CodeSelect(this,'getKindCodeWithIndNew','0,1,2,3,4,8,9,','Y','riskCode='+fm.SubGuItemKindRiskCode[1].value+',kindInd=2,productEdition=fm.productEdition.value','');changeSubKindCodeCallBack(this);" onkeyup="getField(this, 'ItemKindSub', '<bean:message key='alert.message.itemkind' />');code_CodeSelect(this,'getKindCodeWithIndNew','0,1,2,3,4,8,9','Y','riskCode='+fm.SubGuItemKindRiskCode[1].value+',kindInd=2,productEdition=fm.productEdition.value','');changeSubKindCodeCallBack(this);" onchange="getField(this, 'ItemKindSub', '<bean:message key='alert.message.itemkind' />');code_CodeChange(this,'getKindCodeWithIndNew','0,1,2,3,4,8,9','Y','riskCode='+fm.SubGuItemKindRiskCode[1].value+',kindInd=2,productEdition=fm.productEdition.value','');changeSubKindCodeCallBack(this);"> <INPUT name="SubGuItemKindKindName" class="readonly" readonly type="text" style="width:60%" readonly title="<bean:write name='subGuPolicyItemKindDto' property='kindName'/>" value="<bean:write name='subGuItemKindDto' property='kindName'/>"> <input name="SubGuItemKindKindInd" type="hidden" value="<bean:write name='subGuItemKindDto' property='kindInd'/>"> </td> <td class="white"> <input name="SubGuItemKindCalculateInd" class="codecode" type="text" style="width:30%" title="<bean:write name='subGuPolicyItemKindDto' property='calculateInd'/>" value="<bean:write name='subGuItemKindDto' property='calculateInd'/>" ondblclick="getField(this,'ItemKindSub');code_CodeSelect(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');" onkeyup="getField(this,'ItemKindSub');code_CodeSelect(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');" onchange="getField(this,'ItemKindSub');code_CodeChange(this,'calculateInd','0,1','Y','02,CalculateInd','setGuItemKindCalculateIndOnchange();');"> <input name="SubGuItemKindCalculateIndName" class="readonly" type="text" style="width:65%" readonly title="<app:localeName name="subGuPolicyItemKindDto" property="calculateInd,CalculateInd" codeType="ggCodeCodeName" filter="true" />" value="<app:localeName name="subGuItemKindDto" property="calculateInd,CalculateInd" codeType="ggCodeCodeName" filter="true" />"> </td> <td class="white"> <input name="SubGuItemKindSumInsured" class="common01" type="text" style="width: 100%" title="<bean:write name='subGuPolicyItemKindDto' property='sumInsured'/>" value="<bean:write name='subGuItemKindDto' property='sumInsured'/>" onchange="checkSubKindInsured(this);calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Sub')"> </td> <td class="white"> <input name="SubGuItemKindRate" class="common01" type="text" style="width: 100%" title="<bean:write name='subGuPolicyItemKindDto' property='rate' format="#,##0.000000"/>" value="<bean:write name='subGuItemKindDto' property='rate' format="#,##0.000000"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Sub')"> <input name="GuCalculator" type="hidden" value="100"> </td> <td class="white"> <input name="SubGuItemKindShortRateFlag" class="codecode" type="text" style="width: 30%" title="<bean:write name='subGuPolicyItemKindDto' property='shortRateFlag'/>" value="<bean:write name='subGuItemKindDto' property='shortRateFlag'/>" ondblclick="getField(this, 'ItemKindSub', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeSelect(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');" onkeyup="getField(this, 'ItemKindSub', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeSelect(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');" onchange="getField(this, 'ItemKindSub', '<bean:message key="alert.message.kindcodeMustInput"/>', '<bean:message key="alert.message.zeroError"/>');code_CodeChange(this,'shortRateFlag','0,1','Y','02,ShortRateFlag','changeGuItemKindShortRateFlag();');"> <input name="SubGuItemKindShortRateFlagName" class="common01" type="text" style="width: 65%" readonly title="<app:localeName name="subGuPolicyItemKindDto" property="shortRateFlag,ShortRateFlag" codeType="ggCodeCodeName" filter="true" />" value="<app:localeName name="subGuItemKindDto" property="shortRateFlag,ShortRateFlag" codeType="ggCodeCodeName" filter="true" />"> </td> <td class="white"> <input name="SubGuItemKindShortRate" type="hidden" value="<bean:write name='subGuItemKindDto' property='shortRate' format="0.00"/>" title="<bean:write name='subGuPolicyItemKindDto' property='shortRate' format="0.00"/>"> <input name="SubGuItemKindShortRateNumerator" class="common01" readonly="readonly" type="text" style="width: 42%" value="<bean:write name='subGuItemKindDto' property='shortRateNumerator' format="#"/>" title="<bean:write name='subGuPolicyItemKindDto' property='shortRateNumerator' format="#"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Sub')">/ <input name="SubGuItemKindShortRateDenominator" class="common01" readonly="readonly" type="text" style="width: 42%" value="<bean:write name='subGuItemKindDto' property='shortRateDenominator' format="#"/>" title="<bean:write name='subGuPolicyItemKindDto' property='shortRateDenominator' format="#"/>" onchange="calculatorPremium(this,'<bean:message key="alert.message.kindcodeMustInput"/>','<bean:message key="alert.message.zeroError"/>','Sub')"> </td> <td class="white"> <input name="SubGuItemKindUwPremium" class="readonly" type="text" style="width: 100%" readonly title="<bean:write name='subGuPolicyItemKindDto' property='uwPremium'/>" value="<bean:write name='subGuItemKindDto' property='uwPremium'/>" onchange=" "> <input name="SubGuItemKindOriginUWPremium" class="common01" type="hidden" style="width: 100%" value="<bean:write name='subGuItemKindDto' property='originUWPremium'/>"> </td> <td class="white"> <input name="SubGuItemKindGrossPremium" class="common01" type="text" style="width: 100%" title="<bean:write name='subGuPolicyItemKindDto' property='grossPremium'/>" value="<bean:write name='subGuItemKindDto' property='grossPremium'/>" onchange=""> <input name="SubGuItemKindOriginGrossPremium" class="common01" type="hidden" value="<bean:write name='subGuItemKindDto' property='originGrossPremium'/>"> </td> <td class="white" align="center"> <input name="button_SubKindLimitKind_Edit" class="smallbutton" type="button" style="cursor: hand" value="<bean:message key="button.limit"/>" onclick="showSubPageForPrpall(this,'span_SubKindLimitKind_SubPage');"> <SPAN id="span_SubKindLimitKind_SubPage" name="span_SubKindLimitKind_SubPage" style="display: none; position: absolute; width: 790; background-color: FFFFFF;"> <jsp:include page="/prpall/plugin/common/riskclass/07/itemengineering/SubKindLimitKind.jsp" /> </SPAN> <INPUT name="button_ItemKindSub_Delete" class="smallbutton" type="button" value="<bean:message key="button.delete"/>" ind="ind" onclick="deleteRowInTable(this,'ItemKindSub',1,1);afterEndorDeleteItemKind(this, 'Sub')"> </td> </tr> </logic:notEmpty> <% } } %> </tbody> <tfoot> <TR> <TD class="title02" colspan="9"> <P align="left"><input name="button_ItemKindSub_Insert" class="button" type="button" style="cursor:hand" ind="ind" value="<bean:message key='button.add'/>" onclick="insertRowInTable(this, 'ItemKindSub', 1);"> </P> </TD> </TR> </tfoot> </table> <app:validate formName="ItemEngineeringKindBlockForm" jsFormName="ItemEngineeringKindBlockForm" /> 解析jsp,我想在这段代码 <tfoot> <TR> <TD class="title02" colspan="9"> <P align="left"><input name="button_ItemKindThird_Insert" class="button" type="button" style="cursor:hand" ind="ind" value="<bean:message key='button.add'/>" onclick="insertEngineeringThridItemKind(this, 'ItemKindThird', 1, '<bean:message key='alert.message.aThirdKindOfAItem' />')"> </P> </TD> </TR> </tfoot> 中,使button_ItemKindThird_Insert 这个按钮在endor(批改)时不隐藏,应该怎么增加代码逻辑
最新发布
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值