你可以在Servlet将取到的数据作一下封装。
然后序列化,再返回Jsp可以参考
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/ResultSetDynaClass.html
然后序列化,再返回Jsp可以参考
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/ResultSetDynaClass.html
解决方案 »
- 超链接使上层结点的css属性失效了,为什么呢?
- tomacat
- NetBeans 报 the absolute uri http java.sun.com jsp jstl core cannot be resolved
- 取值问题!
- 关于iframe的问题,急死了!今天不完成,周末加班!
- jsp参数传递问题请教
- 大家帮我看看这个bean哪里错了~谢谢!
- 急救:在JSP中如何实现FTP上传
- 关于tomcat的问题,急急急啊~~~SOS
- 用什么方法把数组(String[])转成字符串序列(目前已无可用分)
- winxp中,tomcat5.0.16配置后不能显示localhost:8080的示例页面
- 请问在Jbuilder里面怎么玩转jsp阿?
request.setAttribute("dataset", "your result")
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(<YOUR JSP FILE>);
dispatcher.forward(request,response);
2.JSP页面
<Collection> resultSet = <Collection> request.getAttribute("dataset");