1 在Myeclipse中建立Web Project工程
2 右键工程名,找到My Eclipse,找到add struts..
3 可以看到工程中生成了
4 建立action类
5 在struts.xml 文件中配置action
6 在index页面中配置相应的跳转页面
7 数据返回,在用到struts2标签时,在页面顶部位置加入<%@ taglib prefix ="s" uri="/struts-tags"%>
1 在Myeclipse中建立Web Project工程
2 右键工程名,找到My Eclipse,找到add struts..
3 可以看到工程中生成了
4 建立action类
5 在struts.xml 文件中配置action
6 在index页面中配置相应的跳转页面
7 数据返回,在用到struts2标签时,在页面顶部位置加入<%@ taglib prefix ="s" uri="/struts-tags"%>