javaee struts2
jyqc688
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JSP中打印Struts2的值栈(ValueStack)和ActionContext
<%@ page import="com.opensymphony.xwork2.*"%> <%@ page import="com.opensymphony.xwork2.util.*"%> <%@ page import="java.util.*"%> <% ActionContext cxt = ActionContex原创 2012-06-24 18:45:37 · 137 阅读 · 0 评论 -
struts2 Action跳转到jsp页面css失效的解决办法
页面转跳失效问题肯定是路径的问题。建议改相对路径为绝对路径 String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; <link rel="...原创 2012-06-26 19:47:51 · 195 阅读 · 0 评论 -
srturs2 if标签 访问jsp页面变量
1 2 3 4 5 6 7 8 9 10 <% int rown = 2; request.setAttribute("rown",rown); %> <s:if test="#attr['rown']==1"> <h1>rown的值为1 </h1> ...原创 2012-12-05 15:24:41 · 127 阅读 · 0 评论
分享