function goGuoNei(){
var currentPage= document.getElementById("zhuandao").value;
document.form1.action ="/Zyw_New/indexManager?currentpage="+currentPage+"&typeId=1";
document.form1.submit();
}
================================================================
<form name="form1" >
<table class="table_pageBean">
<%
PageBean pb = (PageBean)request.getAttribute("pagebean");
int totalPage = pb.getTotalpage();
System.out.println(totalPage);
if(pb!=null && pb.hasMorePage())
{
pb.setURLPattern( "<a href=\"/Zyw_New/indexManager?typeId=1¤tpage=CURRENTPAGE\">TITLE</a>" );;
%>
<tr>
<td><%=pb.getFirstURL( "首页" ) %></td>
<td><%=pb.getPrevURL( "上一页" ) %></td>
<td>
<%
for(int i=0;i<totalPage;i++)
{
%>
<a href="/Zyw_New/indexManager?currentpage=<%=i %>&typeId=1"><%=i+1 %></a>
<%
}
%>
</td>
<td><%=pb.getNextURL( "下一页" ) %></td>
<td><%=pb.getLastURL( "末页" ) %></td>
<td> <input type="text" name="currentpage" class="zhuandao" id="zhuandao"/></td>
<td><a href="#">转到</a></td>
<td><input type="button" class="zhuandao_button" value="OK" onClick="goGuoNei();"/></td>
</tr>
<%
}
%>
</table>
</form>
var currentPage= document.getElementById("zhuandao").value;
document.form1.action ="/Zyw_New/indexManager?currentpage="+currentPage+"&typeId=1";
document.form1.submit();
}
================================================================
<form name="form1" >
<table class="table_pageBean">
<%
PageBean pb = (PageBean)request.getAttribute("pagebean");
int totalPage = pb.getTotalpage();
System.out.println(totalPage);
if(pb!=null && pb.hasMorePage())
{
pb.setURLPattern( "<a href=\"/Zyw_New/indexManager?typeId=1¤tpage=CURRENTPAGE\">TITLE</a>" );;
%>
<tr>
<td><%=pb.getFirstURL( "首页" ) %></td>
<td><%=pb.getPrevURL( "上一页" ) %></td>
<td>
<%
for(int i=0;i<totalPage;i++)
{
%>
<a href="/Zyw_New/indexManager?currentpage=<%=i %>&typeId=1"><%=i+1 %></a>
<%
}
%>
</td>
<td><%=pb.getNextURL( "下一页" ) %></td>
<td><%=pb.getLastURL( "末页" ) %></td>
<td> <input type="text" name="currentpage" class="zhuandao" id="zhuandao"/></td>
<td><a href="#">转到</a></td>
<td><input type="button" class="zhuandao_button" value="OK" onClick="goGuoNei();"/></td>
</tr>
<%
}
%>
</table>
</form>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货