高手帮忙!
我要在jsp页面进行数据分页显示,用display标签怎么弄?我在session里塞个数组,然后到jsp页面显示,代码如下<%@ page contentType="text/html;charset=gb2312" import="java.util.*;"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<html>
<body>
<display:table name="sessionScope.users" id="userBean" pagesize="2" cellspacing="0" cellpadding="0">
<display:column property="userName" title="姓名" sortable="true" group="1" />
<display:column property="password" title="学号" group="2" />
<display:column property="role" title="序号" />
</display:table>
</body>
</html>
显示了,可是总有下面这个警告,
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html for an explanation.
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.这是什么原因?
是不是缺少jar文件?需要哪些jar文件?
我要在jsp页面进行数据分页显示,用display标签怎么弄?我在session里塞个数组,然后到jsp页面显示,代码如下<%@ page contentType="text/html;charset=gb2312" import="java.util.*;"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<html>
<body>
<display:table name="sessionScope.users" id="userBean" pagesize="2" cellspacing="0" cellpadding="0">
<display:column property="userName" title="姓名" sortable="true" group="1" />
<display:column property="password" title="学号" group="2" />
<display:column property="role" title="序号" />
</display:table>
</body>
</html>
显示了,可是总有下面这个警告,
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html for an explanation.
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.这是什么原因?
是不是缺少jar文件?需要哪些jar文件?
解决方案 »
- 关于java上传文件到服务器文件名录乱码
- 网站简繁体版本转换
- 如何在JSP页面或javabean中应用javax.net.ssl.SSLSession接口?
- 页面定位问题?
- 请问用java怎样做一个离线工具,就是说指定一个链接,能把上面的图片样式表等的信息都下下来
- 急求水晶报表java开发包
- 将你知道的各大搜索引擎加到我的站点,测试成功就有分。
- 【JSON】关于如何JSON对象的遍历
- :有个特别麻烦的问题,请看内容--------------
- 有谁知道response中各个方法的用法,例如response.setHeader("Pragma","No-cache");
- 谁知道什么是Glue Code?
- 基础啊 还是基础没有学好 这个究竟是什么问题??
WARN: Please see http://www.slf4j.org/codes.html for an explanation.
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly. 和你做的一点关系也没有,这个Apache组织的一个开源项目log4j
一个做日志的,你可能用了hibernate 吧,那里面需要为这个弄一个配置文件,Classes或者根目录下
log4j.properties 就是这个文件,如果没有的话,就会出现你看到的那个提示。
http://www.cnblogs.com/eflylab/archive/2007/01/11/618001.html
log4j.rootLogger=info,A
log4j.appender.A=org.apache.log4j.ConsoleAppender
log4j.appender.A.layout=org.apache.log4j.SimpleLayout
The method o.a.commons.logging.impl.SLF4FLogFactory#release was invoked.Given the structure of the commons-logging API, in particular as implemented by SLF4J, the o.a.commons.logging.impl.SLF4FLogFactory#release() method should never be called. However, depending on the deployment of commons-logging.jar files in your servlet container, release() method may be unexpectedly invoked by a copy of org.apache.commons.logging.LogFactory class shipping with commons-logging.jar.This is a relatively common occurrence with recent versions of Tomcat, especially if you place jcl-over-slf4j.jar in WEB-INF/lib directory of your web-application instead of $TOMCAT_HOME/common/lib, where $TOMCAT_HOME stands for the directory where Tomcat is installed. In order to fully benefit from the stability offered by jcl-over-slf4j.jar, we recommend that you place jcl-over-slf4j.jar in $TOMCAT_HOME/common/lib without placing a copy in your web-applications.Please also see bug #22.common log使用了SLF4J(是display标签使用的?), 但是stucts不知是不是使用了log4j