supber

导航

struts2使用步骤

Struts2

步骤:  

1.到jar包(7个)

2.配置web.xml,只需copy,无需更改  

3.在src下copy struts.xml  

4.写类Action    execute()方法  

5.配置struts.xml   一个类对应一个Action   name属性的值是return

"" 的字符串,class=包名.类名

6.启动服务器,访问即可,默认调用execute()方法。当要访问其他方法

时,在url后面加   !方法名

 

posted on 2013-07-14 13:15  supber  阅读(263)  评论(0)    收藏  举报