displaytag: No LocaleResolver configured

以下是我的jsp文件,即使有数据也只能显示:Nothing found to display.

控制台输出:

2010-3-24 19:23:33 org.displaytag.export.ExportViewFactory
信息: Initializing ExportViewFactory with type={csv,excel,xml,pdf}
2010-3-24 19:23:33 org.displaytag.properties.TableProperties getLocaleResolverInstance
信息: No LocaleResolver configured.

麻烦大家帮我看一下究竟是什么问题啊???

[code="java"]<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



正在招标项目
<br> #body {<br> background: #CCFF66;<br> width: 800px;<br> height: 600px;<br> margin: auto<br> }</p> <p>#info {<br> background: #FFFF99;<br> margin: 10px;<br> height: 580px;<br> }<br>
<body>
<div id="body">
    <div id="info">
        <display:table name="inquiryList" id="iList" pagesize="5"
            requestURI="showCurProject" export="true">
                <display:column property="id" title="111(点击排序)" sortable="true" />
                <display:column property="theme" title="222(点击排序)" sortable="true" />
                <display:column property="Isforeign" title="333(点击排序)"
                    sortable="true" />
                <display:column property="inquiryDate" title="444(点击排序)"
                    sortable="true" />
            <display:column property="customerId" title="555(点击排序)"
                    sortable="true" />
                <display:column property="state" title="666(点击排序)" sortable="true" />
            </display:table>
        </div>
    </div>
</body>

[/code]

另外action类中SUCCESS不能为空,最好写成SUCCESS="success"

访问地址为http://localhost/x/showCurProject.action,也就是说访问的是action地址,而不是直接访问页面jsp地址。

你可能刚学struts2,感觉你好多基础东西都不知道是怎么回事儿,努力加油!

是不是配置没配置好

http://www.iteye.com/topic/73606

还有版本也有关

http://www.builder.com.cn/2008/0317/772884.shtml

输出的所谓错误信息其实与你前台页面显不显示数据是没有关系的,那些信息可看做是info级别的输出。

问题可能出在这儿:<display:table name="inquiryList",后台inquiryList属性没有与此值关联上。

查看inquiryList是否有值,并且是否有getInquiryList()方法

这可能有个最重要的问题是:jsp请求与后台action关联的问题。

你把那个action配置贴出来我看看。

看看你的action是否默认执行的showCurProject(int customersId)方法

<display:table name="[color=red]${inquiryList}[/color]" [color=red]uid[/color]="iList" pagesize="5"

1、你的action文件这样配置

2、CurrentProjectAction类中把方法public String showCurProject(int customersId)改成public String showCurProject()

还是把action配置给你贴全了吧 免得你再出错:

/这里是你的jsp路径配置