<logic:present>为什么提示不能载入类别present
在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>
.
.
页:
[1]