こんにちは友人私はstruts2でページネーションのようなFacebookを作成しようとしています.私がしようとしているのはウェブページの最後にあります.
<script>
$(window).scroll(function() {
if ($(window).scrollTop() == $(document).height() - $(window).height()) {
console.log("Bottom reached");
var ul = $('.ullist');
var start = ul.children().length;
$.post("postImage.action?", { start: start }, function(session2) {
// Here I am getting json data
alert("inside class " + session2);
});
} else {
console.log("Bottom reached not");
}
});
</script>
問題は、イテレータを使用したリストが既にあることです。イテレータに値を追加する方法を教えてください。
<s:iterator value="#session.list">
.......//here i already have data
</s:iterator>