tomcat 首次访问页面出现 不能将jsp编译成class的异常

a719031563 2015-06-05 09:50:47
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:604)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sinolife.sf.platform.http.DefaultHttpInterceptor.interceptor(DefaultHttpInterceptor.java:54)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.home.server.SFHome.interceptor(SFHome.java:178)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.home.server.SFPortalHomePlugin.interceptor(SFPortalHomePlugin.java:64)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.framework.web.tags.inheritance.BlockFragmentSupportPlugin.interceptor(BlockFragmentSupportPlugin.java:37)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.security.UrlSecurityPlugin.interceptor(UrlSecurityPlugin.java:91)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.profile.ProfilePlugin.interceptor(ProfilePlugin.java:191)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.rpc.HttpRpcGatewayPlugin.interceptor(HttpRpcGatewayPlugin.java:79)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.trace.HttpRequestTracePlugin.interceptor(HttpRequestTracePlugin.java:275)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.login.hander.LocalLoginHander.interceptor(LocalLoginHander.java:110)
at com.sinolife.sf.login.LoginPlugin.interceptor(LoginPlugin.java:97)
at com.sinolife.sf.platform.http.HttpInterceptorChain.interceptor(HttpInterceptorChain.java:19)
at com.sinolife.sf.platform.http.PlatformFilter.doFilter(PlatformFilter.java:352)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:350)
at org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1330)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1207)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:859)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1781)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
... 57 more


引发 jsp解析异常的原因 可能是由于jsp页面不规范在解析jsp页面时找不到某个元素,遗憾的是 这个项目放在我其他同事的机器上可完美访问该页面,后来我认真的找过一下页面的问题,我发现将标签中 value="" 的代码去掉 这个页面就可以正常访问了,本来我想就这样算了,能运行就成了,现在有个需求 需要我改动这个页面,然而这个页面又不止我一个人在该,每天这个页面代码都会有更新,所以我来此想请教一下 大神 我该如何解决这个问题?
...全文
500 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
figo050518 2017-01-13
  • 打赏
  • 举报
回复
https://bz.apache.org/bugzilla/show_bug.cgi?id=56561 请移步看这里 这是tomcat 的一个异常 在tomcat6.X中存在,7.0中已经修复。 This has been fixed in trunk for 8.0.9 and in 7.0.x for 7.0.55 onwards. The fix is proposed for Tomcat 6. 如果不方便升级tomcat的话,可以查看在访问的页面是否有空值存在,删除空值可以解决问题。
  • 打赏
  • 举报
回复
引用 5 楼 lianghaifan 的回复:
我也遇到同样的问题,请问楼主怎么解决的?应该是环境的问题吧
我也是。你可以了吗
lianghaifan 2015-12-16
  • 打赏
  • 举报
回复
我也遇到同样的问题,请问楼主怎么解决的?应该是环境的问题吧
a719031563 2015-06-05
  • 打赏
  • 举报
回复
jsp code 3: <tr> <th>是否兼职:</th> <td> <c:choose> <c:when test="${not empty applyInfoDTO.insureds.clientInfo.partTime}"> <c:choose> <c:when test="${applyInfoDTO.insureds.clientInfo.partTime eq 'N'}"> <sfform:radiobutton class="radio" onclick="partTimeDesc('Y')" path="insureds.clientInfo.partTime" value="Y" label="是"/> <sfform:radiobutton class="radio" onclick="partTimeDesc('N')" checked="true" path="insureds.clientInfo.partTime" value="N" label="否" /> </c:when> <c:otherwise> <sfform:radiobutton class="radio" onclick="partTimeDesc('Y')" checked="true" path="insureds.clientInfo.partTime" value="Y" label="是"/> <sfform:radiobutton class="radio" onclick="partTimeDesc('N')" path="insureds.clientInfo.partTime" value="N" label="否"/> </c:otherwise> </c:choose> </c:when> <c:otherwise> <sfform:radiobutton class="radio" onclick="partTimeDesc('Y')" path="insureds.clientInfo.partTime" value="Y" label="是"/> <sfform:radiobutton class="radio" onclick="partTimeDesc('N')" checked="true" path="insureds.clientInfo.partTime" value="N" label="否"/> </c:otherwise> </c:choose> <div style="display: none" id="partTimeDescDiv">xxxxx: <sfform:input maxlength="20" path="insureds.clientInfo.partTimeDesc"/> </div> </td> <th><font class="f_c_f30">*</font>xxxxx:</th> <td> <sfform:select path="mainProduct.relationship" id="relationship" class="sf-validatebox w155" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="投保人与被保险人的关系不能为空!" onchange="relationshipChecked(this.value)"> <option value="">请选择</option> <sfform:options items="${benefitRelationShipList}" itemLabel="description" itemValue="relationship" /> </sfform:select> </td> </tr> <tr id="relationshipTr" class="dsn"> <th><font class="f_c_f30">*</font>关系描述:</th> <td colspan="3"><sfform:input id="relationshipDesc" disabled="true" class="sf-validatebox disColor" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="关系描述不能为空!" maxlength="50" path="mainProduct.relationshipDesc"/></td> </tr> </table> </div> <div class="box" align="center"> </div> <div class="c rep rep1"> <h2 class="fl title1">xxxxx</h2><span class="fl">xxxxx</span><span id="applicantMsg" class="m_t10 m_l50 lh18"></span> </div> <div> <table border="0" cellspacing="1" cellpadding="0" class="T1" width="100%"> <tbody id="applicantTbody"> <tr> <th width="16%"><font class="f_c_f30">*</font>姓名:</th> <td width="39%"><sfform:input onblur="toTransferName()" value="" id="applicantName" messageObjId="applicantMsg" messageGroupId="applicantGroup" inputRequired="true" missingMessage="您还未填写投保人的姓名,请填写!" class="sf-validatebox" maxlength="25" path="applicant.clientInfo.clientName"/></td> <th width="15%"><font class="f_c_f30">*</font>性别:</th> <td width="30%"> <sfform:radiobutton id="applicantSexM" class="sf-validatebox radio" messageObjId="applicantMsg" messageGroupId="applicantGroup" validType="sex['applicantIdType','applicantIdno','applicantSexM']" path="applicant.clientInfo.sexCode" label="男" value="1"/> <sfform:radiobutton id="applicantSexF" class="sf-validatebox radio" messageObjId="applicantMsg" messageGroupId="applicantGroup" validType="sex['applicantIdType','applicantIdno','applicantSexF']" path="applicant.clientInfo.sexCode" label="女" value="2" /> </td> </tr> <tr> <th><font class="f_c_f30">*</font>证件类型:</th> <td><sfform:select onchange="idTypeCheck('applicant_idnoValidityDate','applicantIdType')" onblur="toTransferId()" class="w155" path="applicant.clientInfo.idType" id="applicantIdType"> <sfform:options items="${idTypeList}" itemLabel="idTypeName" itemValue="idType" /> </sfform:select></td> <th><font class="f_c_f30">*</font>证件号码:</th> <td><sfform:input id="applicantIdno" validType="cnCard['applicantIdType']" onblur="toTransferIdno('applicantIdType','applicantBirthDay',this.value)" class="sf-validatebox" messageObjId="applicantMsg" messageGroupId="applicantGroup" inputRequired="true" missingMessage="证件号码不能为空!" maxlength="25" path="applicant.clientInfo.idno"/></td> </tr> <tr> <th><font class="f_c_f30">*</font>证件有效期:</th> <c:if test="${applyInfoDTO.mspApplyInfo.applySource ne 'K' }" > <td colspan="3"> </c:if> <c:if test="${applyInfoDTO.mspApplyInfo.applySource eq'K' }" > <td > </c:if> <input type="text" disabled="disabled" id="applicant_idnoValidityDate_1" style="display: none"> <sfform:input id="applicant_idnoValidityDate" readonly="true" value="" messageObjId="applicantMsg" messageGroupId="applicantGroup" inputRequired="true" missingMessage="投保人的证件有效期为空!" class='Wdate sf-validatebox' onclick="WdatePicker({skin:'whyGreen'})" path="applicant.clientInfo.idnoValidityDate"/> <input value="" type="checkbox" name="applicant_" onclick="longTerm_clickHandler('applicant_','1')" id="applicant_" style="border: 0px">长期 </td> <c:if test="${applyInfoDTO.mspApplyInfo.applySource eq'K' }" > <th>移动电话:</th> <td> <sfform:input maxlength="20" onblur="amobilePhonePhoneNo('Y')" class="sf-validatebox" style="ime-mode:disabled" messageObjId="insuredsMsg" messageGroupId="insuredsMsg" id="applicantPhoneNo" validType="inputMobile" path="applicant.mobilePhone.phoneNo"/> </td> </c:if> </tr> <tr> <th><font class="f_c_f30">*</font>出生日期:</th> <td> <input id="applicantBirthDay" name="applicantBirthDay" messageObjId="applicantMsg" readonly="true" messageGroupId="applicantGroup" validType="birthDay['applicantIdType','applicantIdno']" inputRequired="true" missingMessage="投保人的出生日期不能为空!" class='Wdate sf-validatebox' onclick="WdatePicker({skin:'whyGreen',startDate:'${today }',maxDate:'%y-%M-%d'})" value="<fmt:formatDate value="${applyInfoDTO.applicant.clientInfo.birthday}" pattern="yyyy-MM-dd"/>" /> </td> <th>Email:</th> <td><sfform:input class="sf-validatebox" style="ime-mode:disabled" messageObjId="applicantMsg" messageGroupId="applicantGroup" maxlength="50" validType="email" path="applicant.clientEmail.emailAddress"/></td> </tr> <tr> <th><font class="f_c_f30">*</font>xxxxx:</th> <td> <c:choose> <c:when test="${not empty applyInfoDTO.applicant.clientInfo.marriageCode}"> <c:forEach items="${marriageTypeList}" var="marriage" > <c:choose> <c:when test="${applyInfoDTO.applicant.clientInfo.marriageCode eq marriage.marriageCode}"> <sfform:radiobutton checked="true" class="radio" path="applicant.clientInfo.marriageCode" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:when> <c:otherwise> <sfform:radiobutton path="applicant.clientInfo.marriageCode" class="radio" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:otherwise> </c:choose> </c:forEach> </c:when> <c:otherwise> <c:forEach items="${marriageTypeList}" var="marriage" > <c:choose> <c:when test="${marriage.marriageCode eq '10'}"> <sfform:radiobutton checked="true" class="radio" path="applicant.clientInfo.marriageCode" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:when> <c:otherwise> <sfform:radiobutton path="applicant.clientInfo.marriageCode" class="radio" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:otherwise> </c:choose> </c:forEach> </c:otherwise> </c:choose> </td> <th><font class="f_c_f30">*</font>xxxxx:</th> <td><sfform:select id="applicantCountrySelect" class="w155" path="applicant.clientInfo.countryCode" > <sfform:options items="${countryList}" itemLabel="countryName" itemValue="countryCode" /> </sfform:select> <a href="${ctx}sales/apply/onLoadCountry.do?flag=applicantCountrySelect" class="fancybox fancybox.iframe" >查询</a> </td> </tr>
a719031563 2015-06-05
  • 打赏
  • 举报
回复
jsp code 2: <tr> <th> <font class="f_c_f30">*</font>家庭地址:</th> <td><sfform:select messageObjId="insuredsMsg" messageGroupId="insuredsGroup" class="selectAddr sf-validatebox" inputRequired="true" missingMessage="家庭住址省份不能为空!" onchange="getCityByProvince(this.value,'insuredsHomeCityCode','insuredsHomeAreaCode');" id="insuredsHomeProvinceCode" path="insureds.homeAddress.provinceCode" > <option value="">请选择</option> <sfform:options items="${provincList}" itemLabel="provinceName" itemValue="provinceCode" /> </sfform:select> <span class="f_c_999">省</span>  <sfform:select messageObjId="insuredsMsg" messageGroupId="insuredsGroup" class="selectAddr sf-validatebox" inputRequired="true" missingMessage="家庭住址城市不能为空!" id="insuredsHomeCityCode" onchange="getAreaByCity(this.value,'insuredsHomeAreaCode');" path="insureds.homeAddress.cityCode" > <option value="">请选择</option> <sfform:options items="${insuredsHomeCityList}" itemLabel="cityName" itemValue="cityCode" /> </sfform:select> <span class="f_c_999">市</span>  <sfform:select messageObjId="insuredsMsg" messageGroupId="insuredsGroup" class="selectAddr sf-validatebox" inputRequired="true" missingMessage="家庭住址区域不能为空!" id="insuredsHomeAreaCode" path="insureds.homeAddress.areaCode" > <option value="">请选择</option> <sfform:options items="${insuredsHomeAreaList}" itemLabel="areaName" itemValue="areaCode" /> </sfform:select> <span class="f_c_999">区</span></td> <th><font class="f_c_f30">*</font>住址邮编:</th> <td><sfform:input class="sf-validatebox" onkeypress="SALES.input.numberInput(this)" onchange="SALES.input.numberChange(this)" id="insuredsHomePostCode" inputRequired="true" missingMessage="家庭住址中邮编不能为空!" validType="postalcode" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" maxlength="6" path="insureds.homeAddress.postalcode"/></td> </tr> <tr> <th><font class="f_c_f30">*</font>详细地址:</th> <td><sfform:input class="sf-validatebox w350" id="insuredsHomeDetailAddress" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="家庭详细住址不能为空!" maxlength="50" path="insureds.homeAddress.detailAddress"/></td> <th>固定电话:</th> <td> <sfform:input class="sf-validatebox w50" style="ime-mode:disabled" id="insuredsAreaCode" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" maxlength="4" path="insureds.homePhone.areaNo"/> -  <sfform:input class="sf-validatebox w80" style="ime-mode:disabled" id="insuredsHomePhone" onblur="checkAddrPhone()" maxlength="8" path="insureds.homePhone.phoneNo"/> </td> </tr> <tr> <th><font class="f_c_f30">*</font>职业代码:</th> <td><sfform:input id="insuredsOccupationCode" onblur="trimUtil('insuredsOccupationCode');getOccupationDesc(this.value,'insuredsOccupationCodeDesc')" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" class="sf-validatebox w85" inputRequired="true" missingMessage="职业代码不能为空!" type="text" path="insureds.clientInfo.occupationCode" /> <sfform:input readonly="true" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" class="sf-validatebox w230" inputRequired="true" missingMessage="职业代码不存在!" id="insuredsOccupationCodeDesc" type="text" path="insureds.clientInfo.occupationCodeDesc" /> <a href="${ctx}sales/occupationSelect.do?flag=insuredsOccupationCode" class="fancybox fancybox.iframe" >查询</a></td> <th><font class="f_c_f30">*</font>年收入:</th> <td><sfform:input class="sf-numberbox" id="insuredsIncomeYear" inputRequired="true" missingMessage="年收入不能为空!" maxlength="8" precision="2" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" validType="maxLength[15]" path="insureds.clientInfo.incomeYear"/> <span class="f_c_999">万元</span></td> </tr> <tr> <th><font class="f_c_f30">*</font>单位名称:</th> <td><sfform:input class="sf-validatebox w350" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="单位名称不能为空!" maxlength="50" path="insureds.clientInfo.workUnit"/></td> <th><font class="f_c_f30">*</font>职业:</th> <td><sfform:input class="sf-validatebox" id="insuredsPosition" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="职业不能为空!" maxlength="25" path="insureds.clientInfo.occupationAddedDesc"/></td> </tr> <tr> <th valign="top">单位地址:</th> <td><sfform:select class="selectAddr" onchange="getCityByProvince(this.value,'insuredsOfficeCityCode','insuredsOfficeAreaCode');" id="insuredsOfficeProvinceCode" path="insureds.officeAddress.provinceCode" > <option value="">请选择</option> <sfform:options items="${provincList}" itemLabel="provinceName" itemValue="provinceCode" /> </sfform:select> <span class="f_c_999">省</span>  <sfform:select class="selectAddr" id="insuredsOfficeCityCode" onchange="getAreaByCity(this.value,'insuredsOfficeAreaCode');" path="insureds.officeAddress.cityCode" > <option value="">请选择</option> <sfform:options items="${insuredsOfficeCityList}" itemLabel="cityName" itemValue="cityCode" /> </sfform:select>  <span class="f_c_999">市</span>  <sfform:select class="selectAddr" id="insuredsOfficeAreaCode" path="insureds.officeAddress.areaCode" > <option value="">请选择</option> <sfform:options items="${insuredsOfficeAreaList}" itemLabel="areaName" itemValue="areaCode" /> </sfform:select> <span class="f_c_999">区</span></td> <th>单位邮编:</th> <td> <sfform:input class="sf-validatebox" onkeypress="SALES.input.numberInput(this)" onchange="SALES.input.numberChange(this)" id="insuredsOfficePostCode" validType="postalcode" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" maxlength="6" path="insureds.officeAddress.postalcode" /> </td> </tr> <tr> <th>详细地址:</th> <td><sfform:input class="sf-validatebox w350" onblur="checkAddr('insuredsOfficeDetailAddress','insuredsOfficePostCode','insuredsMsg')" id="insuredsOfficeDetailAddress" maxlength="50" path="insureds.officeAddress.detailAddress"/></td> <th></th> <td> <!-- <sfform:input class="sf-validatebox" id="insuredsOfficePhone" onblur="checkAddrPhone()" style="ime-mode:disabled" maxlength="20" path="insureds.officePhone.phoneNo"/> --> </td> </tr>
a719031563 2015-06-05
  • 打赏
  • 举报
回复
jsp页面里有些中文我替换成了XXXX jsp 代码 1 <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ include file="/WEB-INF/views/commons/taglibs.jsp"%> <%@ include file="/WEB-INF/views/sales/commons/header.jsp"%> <c:if test="${applyInfoDTO.mspApplyInfo.applySource ne 'K' }"> <%@ include file="/WEB-INF/views/sales/apply/subHeader.jsp"%> </c:if> <c:if test="${applyInfoDTO.mspApplyInfo.applySource eq 'K' }"> <%@ include file="/WEB-INF/views/sales/tools/s_rsHeader.jsp"%> </c:if> <style type="text/css"> .selectAddr{ width: 100px;} #relationshipDesc{width: 500px;} </style> <c:if test="${applyInfoDTO.mspApplyInfo.applySource ne 'K' }"> <input type="hidden" id="flow_step_css_no" value="1" /> </c:if> <c:if test="${applyInfoDTO.mspApplyInfo.applySource eq 'K' }"> <input type="hidden" id="flow_step_css_no" value="5" /> </c:if> <%@ include file="/WEB-INF/views/sales/apply/apply_comPageContent.jsp"%> <div class=" divBgColor" style="margin-top:-10px"> <sfform:form action='${ctx}sales/apply/saveClient.do' modelAttribute="applyInfoDTO" method="post" id="fm" > <input type="hidden" name="isFromDemandInput" id="isFromDemandInput" value="${isFromDemandInput}"> <sfform:input type="hidden" path="mspApplyInfo.mspNo"/> <sfform:input type="hidden" id="applySource" path="mspApplyInfo.applySource"/> <sfform:input type="hidden" path="mspApplyInfo.applyBarCode"/> <sfform:input type="hidden" path="mspApplyInfo.signedDate"/> <sfform:input type="hidden" id="mspNo" path="mspNo"/> <input type="hidden" name="isPreview" id="isPreview" value="N"/> <div class="box" align="center"> </div> <div class="c rep rep1"> <h2 class="fl title1">xxxxx</h2><span id="insuredsMsg" class="m_t10 m_l205 lh18"></span> </div> <div> <table border="0" cellspacing="1" cellpadding="0" class="T1" width="100%"> <tr> <th width="16%"><font class="f_c_f30">*</font>xxxxx:</th> <td> <sfform:input id="insuredsInfoName" value="" onblur="toTransferName()" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="您还未填写被保险人的姓名,请填写!" class="sf-validatebox" maxlength="25" path="insureds.clientInfo.clientName"/> </td> <th width="15%"><font class="f_c_f30">*</font>xxxxx:</th> <td width="30%"> <sfform:radiobutton id="insuredsSexM" class="sf-validatebox radio" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" validType="sex['insuredsIdType','insuredsIdno','insuredsSexM']" path="insureds.clientInfo.sexCode" label="男" value="1"/> <sfform:radiobutton id="insuredsSexF" class="sf-validatebox radio" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" validType="sex['insuredsIdType','insuredsIdno','insuredsSexF']" path="insureds.clientInfo.sexCode" label="女" value="2" /> </td> </tr> <tr> <th><font class="f_c_f30">*</font>xxxxx:</th> <td><sfform:select onchange="idTypeCheck('insureds_idnoValidityDate','insuredsIdType')" id="insuredsIdType" class="w155" path="insureds.clientInfo.idType" onblur="toTransferId()"> <sfform:options items="${idTypeList}" itemLabel="idTypeName" itemValue="idType" /> </sfform:select></td> <th><font class="f_c_f30">*</font>xxxxx:</th> <td><sfform:input onblur="toTransferIdno('insuredsIdType','insuredsBirthDay',this.value)" messageObjId="insuredsMsg" id="insuredsIdno" messageGroupId="insuredsGroup" validType="cnCard['insuredsIdType']" inputRequired="true" missingMessage="证件号码不能为空!" class="sf-validatebox" maxlength="25" path="insureds.clientInfo.idno"/></td> </tr> <tr> <th><font class="f_c_f30">*</font>xxxxx:</th> <td> <input type="text" disabled="disabled" id="insureds_idnoValidityDate_1" style="display: none"> <sfform:input id="insureds_idnoValidityDate" readonly="true" value="" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="被保险人的证件有效期为空!" class='Wdate sf-validatebox' onclick="WdatePicker({skin:'whyGreen'})" path="insureds.clientInfo.idnoValidityDate"/> <input value="" type="checkbox" name="insureds_" onclick="longTerm_clickHandler('insureds_','1')" id="insureds_" style="border: 0px">xxxxx </td> <th>xxxxx:</th> <td> <sfform:input maxlength="20" class="sf-validatebox" style="ime-mode:disabled" messageObjId="insuredsMsg" messageGroupId="insuredsMsg" onblur="amobilePhonePhoneNo('Y')" id="iphoneNo" validType="inputMobile" path="insureds.mobilePhone.phoneNo"/> </td> </tr> <tr> <th><font class="f_c_f30">*</font>xxxxx:</th> <td> <input id="insuredsBirthDay" name="insuredsBirthDay" onchange="isChild(this.value)" readonly="true" value="<fmt:formatDate value="${applyInfoDTO.insureds.clientInfo.birthday }" pattern="yyyy-MM-dd"/>" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" validType="birthDay['insuredsIdType','insuredsIdno']" inputRequired="true" missingMessage="xxxxx!" class='Wdate sf-validatebox' onclick="WdatePicker({skin:'whyGreen',startDate:'${today }',maxDate:'%y-%M-%d'})" /> </td> <th>Email:</th> <td><sfform:input class="sf-validatebox" style="ime-mode:disabled" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" maxlength="50" validType="email" path="insureds.clientEmail.emailAddress"/></td> </tr> <tr> <th><font class="f_c_f30">*</font>xxxxx:</th> <td> <c:choose> <c:when test="${not empty applyInfoDTO.insureds.clientInfo.marriageCode}"> <c:forEach items="${marriageTypeList}" var="marriage" > <c:choose> <c:when test="${applyInfoDTO.insureds.clientInfo.marriageCode eq marriage.marriageCode}"> <sfform:radiobutton checked="true" class="radio" path="insureds.clientInfo.marriageCode" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:when> <c:otherwise> <sfform:radiobutton path="insureds.clientInfo.marriageCode" class="radio" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:otherwise> </c:choose> </c:forEach> </c:when> <c:otherwise> <c:forEach items="${marriageTypeList}" var="marriage" > <c:choose> <c:when test="${marriage.marriageCode eq '10'}"> <sfform:radiobutton checked="true" class="radio" path="insureds.clientInfo.marriageCode" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:when> <c:otherwise> <sfform:radiobutton path="insureds.clientInfo.marriageCode" class="radio" value="${marriage.marriageCode}" label="${marriage.marriageName}"/> </c:otherwise> </c:choose> </c:forEach> </c:otherwise> </c:choose> </td> <th><font class="f_c_f30">*</font>xxxxx:</th> <td><sfform:select id="insuredsCountrySelect" class="w155" path="insureds.clientInfo.countryCode" > <sfform:options items="${countryList}" itemLabel="countryName" itemValue="countryCode" /> </sfform:select> <a href="${ctx}sales/apply/onLoadCountry.do?flag=insuredsCountrySelect" class="fancybox fancybox.iframe" >xxxxx</a> </td> </tr> <tr> <th><font class="f_c_f30">*</font>身高:</th> <td><sfform:input precision="1" maxlength="5" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" inputRequired="true" missingMessage="被保人身高不能为空!" class="sf-numberbox" validType="maxLength[6]" path="insureds.clientInfo.hight"/> <span class="f_c_999">厘米</span></td> <th><font class="f_c_f30">*</font>体重:</th> <td><sfform:input precision="1" maxlength="5" messageObjId="insuredsMsg" messageGroupId="insuredsGroup" class="sf-numberbox" inputRequired="true" missingMessage="被保人体重不能为空!" validType="maxLength[5]" path="insureds.clientInfo.weight"/> <span class="f_c_999">公斤</span></td> </tr>
乱世丶桃花 2015-06-05
  • 打赏
  • 举报
回复
把你的jsp页面代码贴一下

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧