`
ludo2008
  • 浏览: 10403 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

shop++使用的是struts2的零配置方式

 
阅读更多
shop++使用的是struts2的零配置方式

net.shopxx.action.shop.ABC类中的list()方法,对应的访问URL就是
http://域名/shop/ABC!list.action
如果list()方法return "ok";
则对应跳转到/WEB-INF/template/shop/ABC_ok.ftl
struts2的跳转与包名、类名、方法名有关!
查看位置:在/shopxx/WebRoot/WEB-INF/lib/struts2-convention-plugin-2.1.8.jar包中的struts-plugin.xml
默认值: <constant name="struts.convention.relative.result.types" value="dispatcher,velocity,freemarker"/>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics