摘要: 一、struts.xml 1 2 3 4 8 9 /tags.jsp10 11 二、Action 1 package cn.su.action; 2 3 import com.opensymp... 阅读全文
posted @ 2014-04-18 01:34 XIAOHEI丨 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 一、配置文件 1 2 5 6 7 8 9 10 11 15 16 17 /ognl.jsp18 19 20 21 二、Action Action中用到的User对象 ... 阅读全文
posted @ 2014-04-17 18:27 XIAOHEI丨 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 一、配置文件 1 7 8 9 13 14 /index.jsp15 16 17 /index.jsp18 19 20 ... 阅读全文
posted @ 2014-04-17 15:30 XIAOHEI丨 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 一、配置文件 1 2 10 11 12 /r1.jsp13 14 15 16 /r2.jsp17 18 19 ... 阅读全文
posted @ 2014-04-17 14:55 XIAOHEI丨 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 一、配置文件strtus.xml 1 2 5 6 7 8 9 13 14 15 default.xml 1 2 5 6 7 8 12 13 14 /de... 阅读全文
posted @ 2014-04-17 11:58 XIAOHEI丨 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 一、struts.xml 1 8 9 10 /index.jsp11 12 二、获取Map类型的reuqest、session、applicationpackage cn.su.action;import java.ut... 阅读全文
posted @ 2014-04-17 10:57 XIAOHEI丨 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 一、配置文件 1 2 3 6 7 8 /index.jsp 9 10 二、Action 1 package cn.su.action; 2 3 import com.opensymphony.xwo... 阅读全文
posted @ 2014-04-16 23:29 XIAOHEI丨 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 一、domain1 package cn.su.domain;2 3 public class User {4 public String name; /*要想struts2正确的赋值,domain类的属性也要提供set方法*/5 public void setName(St... 阅读全文
posted @ 2014-04-16 20:31 XIAOHEI丨 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 一、Action1 public class UserAction extends ActionSupport {2 public String add(){3 return "success";4 }5 public String delete(){6 ... 阅读全文
posted @ 2014-04-16 17:32 XIAOHEI丨 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 一、Action 1 public class UserAction extends ActionSupport { 2 public String show(){ 3 return "show"; 4 } 5 public String add(){ 6 ... 阅读全文
posted @ 2014-04-16 16:38 XIAOHEI丨 阅读(120) 评论(0) 推荐(0) 编辑