求个为大神看看dwr与hibernate整合

前端之家收集整理的这篇文章主要介绍了求个为大神看看dwr与hibernate整合前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<script type="text/javascript" src="dwr/engine.js"></script>
<script type="text/javascript" src="dwr/util.js"></script>
<script type="text/javascript" src="dwr/interface/BookDaoImpl.js"></script>
<script type="text/javascript">
function temp(){
BookDaoImpl.findBooks(books);
}
function books(date){
alert(date.length);
dwr.util.removeAllRows("tab");
dwr.util.addRows("tab",date,[
function(d){return d.book_id;},
function(d){return d.book_isbn;},
function(d){return d.book_price;},
function(d){return d.book_pubdate;}
]);
}
</script>
<body onload="temp()">
图书搜索:<input type="text" id="text" /><input type="button" value="搜索" />
<table>
<thead>
<tr>
<td>书名</td>
<td>编号</td>
<td>价格</td>
<td>日期</td>
</tr>
</thead>
<tbody id="tab">
</tbody>
</table>

</body>

报的错误是:log4j:WARN No appenders could be found for logger (org.directwebremoting.util.Logger).


log4j:WARN Please initialize the log4j system properly.

我下载了log4j放在src目录下也是不行,d.book_id都是空的

原文链接:https://www.f2er.com/ajax/166071.html

猜你在找的Ajax相关文章