摘要: Action名称的搜索顺序1.获得请求路径的URI,例如url是: http://server/struts2/path1/path2/path3/test.action2.首先寻找namespace为/path1/path2/path3的package,如果不存在这个package则执行步骤3;如果存在这个package,则在这个package中寻找action(默认的命名空间为空字串)如果在默... 阅读全文
posted @ 2010-01-02 20:12 IT Person 阅读(232) 评论(0) 推荐(0) 编辑
摘要: <package name="default" namespace="/test" extends="struts-default"> <action name="helloworld" class="cn.action.HelloWorldAction" method="execute"> <result name="success">/WEB-INF/pag... 阅读全文
posted @ 2010-01-02 00:46 IT Person 阅读(308) 评论(0) 推荐(0) 编辑