哪位高人帮忙转换下标签啊`!小弟急用~!
<body bgcolor= "#ffffff ">
<%
int pageCount = 5;
int curPage = 1;
String strPage = request.getParameter( "page ");
if(strPage!=null && !strPage.equals( " ")){
curPage = Integer.parseInt(strPage);
}
int start = (curPage-1)*pageCount+1;
int end = start+pageCount-1;
UserManager db=new UserManager();
ArrayList list=db.getUserInfo(start,end);
int num= db.getCount(pageCount);
session.setAttribute( "start ",new Integer(start));
session.setAttribute( "end ",new Integer(end));
%>
那位高人能帮小弟把这段JSP脚本转换成标签格式?小弟在此谢过~!!
------解决方案-------------------- <c:set var= "pagecount " value= "5 " scope= "page "> </c:set>
<c:set var= "curPage " value= "1 " scope= "page "> </c:set>
<c:set var= "strPage " value= "$param.page} " scope= "page "> </c:set>
<c:if test= "${strPage== ' '&&strPage==null ">
<c:set var= "curPage " value= "${strPage } "> </c:set>
</c:if>
<c:set var= "start " value= "${(cruPage-1)*pagecount+1 } " scope= "session "> </c:set>
<c:set var= "end " value= "${start+pagecount-1 } " scope= "session "> </c:set>
<jsp:userBean id= "dfd " class= "*.UserManager "> </jsp:userBean>
这两句话是没哟办法只用jstl和EL表达式解决的只有自己创建自定义标签 ArrayList list=db.getUserInfo(start,end);
int num= db.getCount(pageCount);
刚来的多多关照:)