摘要: action接收参数的三种方法:1.使用Action的属性接收参数: a.定义:在Action类中定义属性,创建get和set方法; b.接收:通过属性接收参数,如:userName; c.发送:使用属性名传递参数,如:user1!add?name=Magci&age=18;eg:public class UserAction extends ActionSupport { private String name; private int age; public String add() { System.out.println("name=" + name); S 阅读全文
posted @ 2012-08-28 10:02 Jojojojoo 阅读(391) 评论(0) 推荐(0) 编辑