六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 159|回复: 0

<logic:present>为什么提示不能载入类别present

[复制链接]

升级  32%

4

主题

4

主题

4

主题

童生

Rank: 1

积分
16
 楼主| 发表于 2013-2-6 10:28:18 | 显示全部楼层 |阅读模式
在Action中我定义了session代码如下:

request.getSession().setAttribute("searchInfo", entityArray);

在jsp页面中的代码如下:

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html"  %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"  %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
.
.
.
.
<html:form action="/FactoryEntryAction.do">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>
        <table width="60%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="40%" align="right">name:  </td>
            <td align="left"><html:text property="nounyuKoujoCd" size="13"/></td>
          </tr>
         .
         .
         .
  
          <tr>
            <td align="right"><html:button property="log"  value="login" /></td>
            <td align="left"><html:button property="search"   value="view" /></td>
          </tr>      
        </table>
      </td>
    </tr>
  </table>
</html:form>

<logic:present name="searchInfo">
<logic:iterate id="searchInfo" name="searchInfo" scope="request">
<table>
<tr>
<td align="center">xxx</td>
</tr>
<tr>
<td align="center">
<bean:write name="searchInfo" property="kigyoCd" filter="true"/>
</td>
</tr>
</table>
</logic:iterate>
</logic:present>
<logic:notPresent name="searchInfo">
searchInfo not present
</logic:notPresent>
.
.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表