jstl标签使用-- 关于c for 循环

Action :

request.setAttribute("patentInfo", (Map)map.get("patentInfoBean"));

jsp展示:

    "patentbean" items="${patentInfo}">

    "curBean" scope="request" value='${patentbean.value}' />  //声明一个变量

    "fontclass">

           "left" valign="top">${curBean.year}

           "right" valign="top">${curBean.inventBrandSize}

           "right" valign="top">${curBean.practicalBrandSize}

           "right" valign="top">${curBean.surfaceBrandSize}

           "right" valign="top">${curBean.patentTotalSize}

      

   

或者

    "patentbean" items="${patentInfo}">
    "fontclass">

           "left" valign="top">${patentbean.value.year}

           "right" valign="top">${curBean.inventBrandSize}

           "right" valign="top">${curBean.practicalBrandSize}

           "right" valign="top">${curBean.surfaceBrandSize}

           "right" valign="top">${curBean.patentTotalSize}

      

   

 

//如果不是第一次循环就加一个
换行

       
      

    


       //相当于if{}else{}
        
          <%=WebUtils.getMessage("java_.CCM_00064") %><%--名称: --%>
          ${mainpartnercontext.corpName}     
        

        
          <%=WebUtils.getMessage("java_.CCM_00060") %><%--名称: --%>//在Application.properties中配置key和文字的ascii码
         
          
          
             ${mainpartnercontext.corpName}
          

          
             <${mainpartnercontext.corpName}
          

          
   
         
        

      

      

 

 

 

你可能感兴趣的:(html)