1.搭建struts2框架
下載地址:http://struts.apache.org/download.cgi#struts25101

Paste_Image.png
2.導入jar包

Paste_Image.png
3正式開始配置
名字 struts2_hello

Paste_Image.png
勾選自動生成web.xml

Paste_Image.png
項目大致結(jié)構

Paste_Image.png
配置web.xml

Paste_Image.png
配置struts.xml

Paste_Image.png
javacode

Paste_Image.png
啟動tomcat容器

Paste_Image.png
最后訪問項目 ,struts控制器搭建結(jié)束