Home  >  Article  >  Web Front-end  >  jsp分页问题_html/css_WEB-ITnose

jsp分页问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:43:14843browse

jsp  分页 条件查询

我现在想做一个分页的功能,当然后台不是问题,问题在页面处理上,如果是第一次到页面,默认是查询所有记录,实际是提交到listAction,而页面还支持其他条件查询,提交到queryByConditionAction,那么在分页控制里如果提交到后台的Action呢(提交只可能只有一个Action啊,页面如何知道我要提交到哪个Action?)

回复讨论(解决方案)

麻烦大手们帮看看啊,急需解决!

只提交到一个Action啊  在这个Action里判断前台输入的查询条件试试

因为这个查询条件如果页面没有输入,我也是要在后台自动加条件再查询的,但是第一次进来不会,就是查询列表!

问题已经解决,谢谢了!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn