struts
文章平均质量分 82
Papaver
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ThreadLocal
Test1 public class Test1 { public static ThreadLocal tt = new ThreadLocal(); public static void main(String args[]) { tt.set("xiaogao"); new Test2().print(); } } Test2 public class Test2原创 2012-05-03 10:55:23 · 377 阅读 · 0 评论 -
第一个Struts2程序,包含编码设置以及开发模式
1.解压apps下的struts2-blank.war,解压后在复制WEB-INF下web.xml中的filter标签,放在自己的项目的web.xml中。 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* 2.在自己项目src下建立原创 2012-05-02 18:18:15 · 1666 阅读 · 0 评论 -
Struts2的日期格式化以及日期插件
添加页面add.jsp 日历插件 生 日:> vo.User public class User { private Date birthday; public User() { super(); } public Date getBirthday() { return birthday; } public原创 2012-05-04 20:22:16 · 671 阅读 · 0 评论 -
ActionContext
UserAction package action; import java.util.Map; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.util.ValueStack; public class原创 2012-05-03 22:34:34 · 649 阅读 · 0 评论 -
对于类型选择的有趣处理
选项是从map里遍历出来了,map是启动时候在servlet里面装进去的。 InitServlet public class InitServlet extends HttpServlet { public void init() throws ServletException { Map map = new HashMap(); map.put(1, "高手"); map.原创 2012-05-04 22:32:20 · 350 阅读 · 0 评论 -
Struts2表单
一个简单的表单原创 2012-05-04 21:51:03 · 357 阅读 · 0 评论 -
Sruts的路径访问细节问题
struts.xml <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> /index.jsp原创 2012-05-02 19:07:11 · 495 阅读 · 0 评论 -
Property-Driven和Model-Driven
Property-Driven struts.xml <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">原创 2012-05-05 08:56:40 · 443 阅读 · 0 评论
分享