displayTag分页的问题
我在用displayTag进行分页时我想调整一下页号和内容的位置,默认是页号在内容的上面显示,这样不好看,我想让页号在内容下面显示如果做呢?谢谢了!
刚才忘了贴代码上来了,把代码发上来能帮我改改吗?
<body>
<%
tt.people p1 = new tt.people();
p1.setId(1);
p1.setName( "wangjin1 ");
tt.people p2 = new tt.people();
p2.setId(2);
p2.setName( "wangjin2 ");
tt.people p3 = new tt.people();
p3.setId(3);
p3.setName( "wangjin3 ");
tt.people p4 = new tt.people();
p4.setId(4);
p4.setName( "wangjin4 ");
tt.people p5 = new tt.people();
p5.setId(5);
p5.setName( "wangjin5 ");
List l = new ArrayList();
l.add(p1);
l.add(p2);
l.add(p3);
l.add(p4);
l.add(p5);
pageContext.setAttribute( "test ",l);
%>
<display:table name= "${test} " pagesize= "2 " export= "true ">
<display:column property= "id "> </display:column>
<display:column property= "name "> </display:column>
</display:table>
</body>
------解决方案--------------------嘿嘿,有关这个问题,你要在它的资源文件里来改了。
basic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
locale.provider=org.displaytag.localization.I1