读书人

struts2转为之通配符转向结果使用动

发布时间: 2013-09-28 10:01:20 作者: rapoo

struts2转向之通配符,转向结果使用动态值

        <action name="*_*" class="{1}Action" method="{2}">        <result name="paging">/admin/{1}/paging.jsp</result>        <result name="to">/admin/{1}/{2}.jsp</result>        <result name="input">/admin/{1}/to{2}.jsp</result>        <result name="topaging" type="redirectAction">{1}_paging</result>        <result name="{1}">/admin/{1}/{2}.jsp</result>        </action>
使用通配符,可以减少工作量,大大缓解开发进度!

读书人网 >编程

热点推荐