尽管有人认为action测试的价值不大,但如果你真想测试,请参考这篇文章: http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/