Struts 2 Action和类型转换.pptVIP

  • 1
  • 0
  • 约8.49千字
  • 约 32页
  • 2017-11-23 发布于河南
  • 举报
Struts 2 Action和类型转换

Free powerpoint template: Struts 2——Action和类型转换 2009年10月22日 制作人:飞扬 Action Action通过setter方法把HTTP请求中 参数值赋给与之同名的属性,通过getter 方法Action中的属性值输出。 虽然Action简单,但是为了使Action 更加规范,也为了简化Action的开发, Struts 2.0提供了一个Action接口和一个 ActionSupport类,通常在实现Action时继 承ActionSupport类就可以了。 Action接口 public abstract interface Action{ //静态常量 public static final String SUCCESS = “success”; public static final String NONE = “none”; public static final String ERROR = “error”; public static final String INPUT = “input”; public static final String LOGIN = “login”; //抽象接口

文档评论(0)

1亿VIP精品文档

相关文档