当单独使用struts2框架时,struts.xml配置文件中的action节点中的class属性值应指定“该action对应的类的全限定名”。
当讲struts2框架与spring框架结合使用时,由于action实例由spring负责创建,action节点中的class属性值应指定为applicationContext.xml文件中的bean节点下的id属性。
当单独使用struts2框架时,struts.xml配置文件中的action节点中的class属性值应指定“该action对应的类的全限定名”。
当讲struts2框架与spring框架结合使用时,由于action实例由spring负责创建,action节点中的class属性值应指定为applicationContext.xml文件中的bean节点下的id属性。