第二种:继承LoginActionInterface implements Action接口的类。
第三种:继承LoginActionSupport extends ActionSupport抽象类的类。
Action是struts中的一个组件
代表一个用户操作
dao是数据访问层
也就是说Dao中的代码是进行数据库访问的
这样做层次分明
符合mvc模式
第二种:继承LoginActionInterface implements Action接口的类。
第三种:继承LoginActionSupport extends ActionSupport抽象类的类。
Action是struts中的一个组件
代表一个用户操作
dao是数据访问层
也就是说Dao中的代码是进行数据库访问的
这样做层次分明
符合mvc模式