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"/>
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"/>