在页面通过from表单提交某些数据,在后台里进行模糊查询,查询出来的东西正常显示在页面上,但是,当一点击下一页的时候,向后台提交不了输入的关键词,该如何解?急求。
在后台生成页脚(第一页,第二页)的时候,就把你搜索的参数带过去。
怎么提交不了?你的代码咋写的
点击下一页的时候,从容器或者什么数据结构中取第二页的内容就好了。
用easyui的datagrid来做,简单多了
这是JSP页面的代码:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
/c:set
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
项目管理 <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } .tabfont01 { font-family: "宋体"; font-size: 9px; color: #555555; text-decoration: none; text-align: center; } .font051 {font-family: "宋体"; font-size: 12px; color: #333333; text-decoration: none; line-height: 20px; } .font201 {font-family: "宋体"; font-size: 12px; color: #FF0000; text-decoration: none; } .button { font-family: "宋体"; font-size: 14px; height: 37px; } html { overflow-x: auto; overflow-y: auto; border:0;} -->
<!-- .STYLE1 {color: #FF0000} -->
function sousuo(){ window.open("gaojisousuo.htm","","depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); } function selectAll(){ var obj = document.fom.elements; for (var i=0;i<obj.length;i++){ if (obj[i].name == "delselgoods"){ obj[i].checked = true; } } } function unselectAll(){ var obj = document.fom.elements; for (var i=0;i<obj.length;i++){ if (obj[i].name == "delselgoods"){ if (obj[i].checked==true) obj[i].checked = false; else obj[i].checked = true; } } }
 | 请选择查询条件按生产时间按仓库编号按货物名称按货物编号按货物类型按货物价格 | 高级查询:请选择查询条件按价格范围按生产时间范围 -- 内 |
|
|
选择 全选--反选 |
货物列表 | 选择 | 货物编号 | 货物名称 | 计量单位 | 价格 | 生产日期 | 有效期 | 库存总量 | 货物类型 | 备注 | 操作 | "/> | | | | | | | | | | |
|
|
|
善变的代码有点乱,你么你看看这回那
 | 请选择查询条件按生产时间按仓库编号按货物名称按货物编号按货物类型按货物价格 | 高级查询:请选择查询条件按价格范围按生产时间范围 -- 内 |
|
|
选择 全选--反选 |
货物列表 | 选择 | 货物编号 | 货物名称 | 计量单位 | 价格 | 生产日期 | 有效期 | 库存总量 | 货物类型 | 备注 | 操作 | "/> | | | | | | | | | | |
|
|
|

图片说明](https://img-ask.csdn.net/upload/201508/19/1439980344_778767.png)



注释着低级模糊查询的是action,剩下的是jsp页面。头一次用这个论坛,不会粘贴代码片段,弄得不好的地方请原谅