logic:match 有这样的用法:<logic:notMatch name="happyName" scope="reqeust" value="happy" location="start"></logic:notMatch>
但想想知道 怎么判断如下的这个Flag的第三个字符是不是1  这里应该怎么写啊。  <logic:match name="feoReinsReceiveDto"  property="flag" value="0110000000" >
          <td  class="common1" valign="top">
          <textarea name='specialProvisions' cols=150 rows=15 style='border:0px;overflow:hidden;font-size:9pt;'     algin='left'><bean:write name="feoReinsReceiveDto" property="specialProvisions"/>
              </textarea>
          </td>
  </logic:match>

解决方案 »

  1.   

    楼主 为什么还用struts啊 ,早就忘光了~~
      

  2.   

    兄弟 我们现在现在有的系统里还是JSP里套的纯JAVA呢  我能用个标签已经很先进了。<%@ page language="java" %>
    <%@ page contentType="text/html; charset=GBK" %>
    <%@ 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/undwrt-app.tld" prefix="app"%>
    <%@ page import="java.util.*"%>
    <%@page import="com.sinosoft.platform.ui.control.action.UIPrpDriskConfigAction"%>
    <%@page import="com.sinosoft.platform.dto.domain.PrpDriskConfigDto"%>
    <% 
       String dangerNo   = request.getParameter("dangerNo");   
       String businessNo = request.getParameter("businessNo"); 
       String riskCode   = request.getParameter("riskCode"); 
       String businessType = request.getParameter("businessType");
       String fieldName = request.getParameter("FieldName");
       String classCode = request.getParameter("classCode"); 
       //-------------------------------add by lilong begin 20120621 风险评估方式控制走配置表
       PrpDriskConfigDto prpDriskConfigDto = new PrpDriskConfigDto();
       boolean riskAssessmentType=false;
       prpDriskConfigDto = UIPrpDriskConfigAction.queryRiskConfig("00000000",riskCode,"RISKASSESSMENT_TYPE");
       if (prpDriskConfigDto!=null&&"1".equals(prpDriskConfigDto.getConfigValue())) 
       {
    riskAssessmentType=true;
       }
       //------------------------------add by lilong end 20120621     风险评估方式控制走配置表  %>
     <html>
      <head>
        <title>查看风险等级评估</title>
        <meta http-equiv=Content-Type content="text/html; charset=gb2312">
        <link rel="stylesheet" type="text/css" href="/undwrt/css/Standard.css">
        <!-- 公用函数 -->
        <!-- 本页函数 -->
        <script src="/undwrt/common/js/CommonTaskDeal.js"></script>
     </head>
     <!-- 滚动条样式定义 -->
    <%@ include file="CommonStyle.html"%>
       
       <body>
    <form name="fm" method="post">
      <table class="common" cellpadding="5" cellspacing="1" align="center" border="0">
        <tr class=listtitle>
          <td colspan=5>风险等级评估结果
           <input type="hidden" name="dangerNo"     value="<%=dangerNo%>">
           <input type="hidden" name="businessNo"   value="<%=businessNo%>">
           <input type="hidden" name="riskCode"     value="<%=riskCode%>">
           <input type="hidden" name="businessType" value="<%=businessType%>">  
          </td>
        </tr>
        <tr class=common >         
          <td>风险类别</td>
             <td colspan=3>
              <select name="riskKind" class=common style="width:200px"> 
               <logic:notEmpty  name="PrpDangerRiskFirst"  >
                      <option value="<bean:write name="PrpDangerRiskFirst" property="riskClass"/>">
                         <bean:write name="PrpDangerRiskFirst" property="riskClassDesc" />
                      </option>
                    </logic:notEmpty>
             </select>
            </td>
            <td> </td>        
       </tr> 
       <!--modify  by lilong begin 20120621     风险评估方式控制走配置表  -->
       <%--if(riskCode.equals("0101")||riskCode.equals("0102")||riskCode.equals("0104")||riskCode.equals("0105")||riskCode.equals("0801")||riskCode.equals("0802")||riskCode.equals("1501")||riskCode.equals("1601")||riskCode.equals("1701")
    ||classCode.equals("09")||classCode.equals("10")||classCode.equals("02")||classCode.equals("27")){--%>
    <%if(riskAssessmentType){ %>
    <!-- modify  by lilong begin 20120621     风险评估方式控制走配置表 -->
       <table class=two>
         <tr class=listtitle>
           <td colspan=5>自留额信息
        </tr>
        <tr class=common >
              <td width="5%"  align="center"></td>
              <td width="10%" align="center">风险等级</td>
              <td width="40%" align="center">风险等级描述</td>
              <td width="20%" align="center">自留额币种</td>
              <td width="25%" align="center">最大自留额</td>
            </tr>
            <logic:notEmpty  name="PrpDangerUnit"> 
            <logic:iterate indexId="index" id="PrpDangerUnit"  name="PrpDangerUnit">
            <tr class=common >
            <td width="5%"  align="center"></td>
             <td width="10%" align="center"><input class="common" name="riskLevel" readonly   style="width:100px"  value="<bean:write name="PrpDangerUnit" property="riskLevel"/>"></td>
             <td width="40%" align="center"><input class="common" name="riskLevelDesc" readonly value="<bean:write name="PrpDangerUnit" property="riskLevelDesc"/>"> </td>
             <td width="20%" align="center"><input class="common" name="currency" readonly  style="width:40px" value="<bean:write name="PrpDangerUnit" property="currency"/>"> </td>
             <td width="25%" align="center"><input class="common" name="retentionValue"  readonly style="width:100px" value="<bean:write name="PrpDangerUnit" property="retentionValue" format="0.00"/>"></td>        
            </tr> 
            </logic:iterate>
            </logic:notEmpty>
       <%}else{ %>    
           <tr class=common>
            <td  width=25%></td>
            <td  width=20%>Excellent</td>
            <td  width=20%>Good</td>
            <td  width=20%>Marginal</td>
            <td  width=15%>Poor</td>
          </tr>
           <tr class=common>       
            <td></td>
            <td >X ≥ 85</td>
            <td >85 > X ≥ 70</td>
            <td >70 > X ≥ 60</td>
            <td >X < 60</td>       
          </tr>
           <logic:notEmpty name="PrpDangerRiskAll">
           <logic:iterate indexId="index" id="PrpDangerRisk" name="PrpDangerRiskAll">
     <tr class=common>
       <td >
       <bean:write name="PrpDangerRisk" property="itemName"/>
       <input type="hidden" name="itemName" value="<bean:write name="PrpDangerRisk" property="itemName"/>">
       <input type="hidden" name="itemCode" value="<bean:write name="PrpDangerRisk" property="itemCode"/>">
       <input type="hidden" name="riskClassHidden" value="<bean:write name="PrpDangerRisk" property="riskClass"/>">
       <input type="hidden" name="riskClassDescHidden" value="<bean:write name="PrpDangerRisk" property="riskClassDesc"/>">
       </td> 
       <td colspan=4 align="center"><input class="common" name="itemValue"  value="<bean:write name="PrpDangerRisk" property="itemValue"/>"> </td>
                 <input type="hidden" name="hiItemValue"> 
               </td>         
    </tr>
           </logic:iterate>
           </logic:notEmpty>
           <table class=two>
          <logic:notEmpty  name="PrpDangerUnit"> 
          <logic:iterate indexId="index" id="PrpDangerUnit"  name="PrpDangerUnit"> 
           <tr class=listtitle>
           <td colspan=5>评估结果
       </tr>               
           <tr class=common >        
             <td width="25%" align="center">风险等级</td>
             <td width="30%" align="center">风险等级描述</td>
             <td width="20%" align="center">自留额币种</td>
             <td width="25%" align="center">最大自留额</td>
          </tr>   
          <tr class=common >      
             <td width="25%" align="center"><input class="common" name="riskLevel" readonly   style="width:100px"  value="<bean:write name="PrpDangerUnit" property="riskLevel"/>"></td>
             <td width="30%" align="center"><input class="common" name="riskLevelDesc" readonly value="<bean:write name="PrpDangerUnit" property="riskLevelDesc"/>"> </td>
             <td width="20%" align="center"><input class="common" name="currency" readonly  style="width:40px" value="<bean:write name="PrpDangerUnit" property="currency"/>"> </td>
             <td width="25%" align="center"><input class="common" name="retentionValue"  readonly style="width:100px" value="<bean:write name="PrpDangerUnit" property="retentionValue" format="0.00"/>"></td>        
          </tr>  
          </logic:iterate>                               
           </logic:notEmpty>    
         </table>
          <%}%>    </table>
       
          <table class=two>
            <tr>       
             <td align="center"><input type="button" class=button value="关 闭" onclick="window.close();"></td>
          </tr>
        
          </table>
        </form>
       <body>
     </html>