公司刚要换成Struts2。总结了一点。
1、Struts2中可以 XXAction!XXMethod.action?XX
2、Struts2配置文件struts.xml中 配置 action的id 为XXAction.action,可以对应method-name在Action中对应相应的方法。
本文介绍 Struts2 框架中的动作调用方式,包括如何通过 URL 调用特定的动作方法及在 struts.xml 中配置 action 的 id 与 method-name 属性来映射到具体的 Action 类方法。
公司刚要换成Struts2。总结了一点。
1、Struts2中可以 XXAction!XXMethod.action?XX
2、Struts2配置文件struts.xml中 配置 action的id 为XXAction.action,可以对应method-name在Action中对应相应的方法。