+ -
当前位置:首页 → 问答吧 → JSP中&f=x 有什么含义?

JSP中&f=x 有什么含义?

时间:2011-09-02

来源:互联网

<table align="center" width="50%">
<tr>
<td style="cursor:hand" onclick="window.location='search.jsp?cpage=1&f=x'">首页</td>
<td style="cursor:hand" onclick="window.location='search.jsp?cpage=<%= ((Integer)request.getAttribute("currpage"))-1==0?1:((Integer)request.getAttribute("currpage"))-1 %>&f=x'">上一页</td>
<td style="cursor:hand" onclick="window.location='search.jsp?cpage=<%= ((Integer)request.getAttribute("currpage"))+1>pa.getTotalPage()?pa.getTotalPage():((Integer)request.getAttribute("currpage"))+1 %>&f=x'">下一页</td>
<td style="cursor:hand" onclick="window.location='search.jsp?cpage=<%= pa.getTotalPage() %>&f=x'">末页</td>
<td>当前<%= request.getAttribute("currpage") %>页</td>
</tr>
</table>
请问 在JSP中 &f=x 的含义是什么?

作者: wulianhui   发布时间: 2011-09-02

search.jsp?cpage=1&f=x 这个...?

f=x 表示 f这个变量值为x 
至于&这个符号... 是用来切割变量名变量值对的
比如cpage=1和f=x 这对变量 用&这个符号切割 好让系统知道有这两个变量

作者: woodenhouse   发布时间: 2011-09-02