Action 中
request.setAttribute("data","数据");jsp 中
${data} 或者 <%=request.getAttribute("data")%>
request.setAttribute("data","数据");jsp 中
${data} 或者 <%=request.getAttribute("data")%>
解决方案 »
- struts2配置文件根对象root问题?
- 求教各位ibatis"数据大小超出此类型的最大值"的异常,内详~
- csv文件列名为中文,读取该列时报错,各位大牛帮忙看下
- hibernate查询出现java.lang.ClassCastException: java.math.BigInteger
- 使用Struts2,里面的jsp页面有些服务器认不出来
- 请问各位高手\专家::怎么样学习EJB?主要集中精力学哪一块?怎么学成为高手??推荐书?
- struts 问题
- 有关hibernate级联问题,搜索网上大部分方法都不行,请大侠指点
- jdom中有根据xsl来转换xml文档的类及函数吗?是什么?
- java开发 ireport html 做数据的统计,饼状图生成
- 初学:请教myeclipse 写的tomcat 怎么样发布到WebLogic服务上? 在线等
- 求OPC客户端的Java实现方法
这要看你在struts-config.xml文件中
<forward name="" path="" redirect="">
这样看你用的是forward转发还是redirect重定向
默认是转发,redirect="false"
转发的话:使用request.setAtrribute("",XX)即可 在JSP中使用${}或者<%%>
重定向的话:使用session.setAtrribute("",xx)即可 在JSP中取法一样