摘要:使用JavaScript通过在表单里加入隐藏域信息,然后用表单提交的方式把数据传递给JSP程序Example(1)代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<scripttype="text/javascript"language="...
阅读全文
摘要:1.servlet跳转到相应jsp页面代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--request.setAttribute("param_id",user.getUserID());//传到参数request.setAttribute("pa...
阅读全文
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//PageCt.Java分页的类packagevod;importjava.sql.*;importjava.util.*;publicclassPageCt{privatelongl_start...
阅读全文
摘要:1.直接往input中读取(form 的action用该servlet,servlet用request.getAttribute获得值)[代码]2.带hidden的input[代码]3.将checkbox的值传到servlet代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighl...
阅读全文