当前位置: 代码迷 >> Web前端 >> struts请求访问拾掇
  详细解决方案

struts请求访问拾掇

热度:382   发布时间:2012-09-03 09:48:39.0
struts请求访问整理
struts action配置

<!-- muytest 模块 -->
<package name="mytest" extends="basePackage" namespace="/mytest/">

</package>


------------MytestAction.java------
@ParentPackage("mytest")
public class MytestAction extends BaseSellerAction {

private static final long serialVersionUID = 939524238617902820L;

public String test(){
return SUCCESS;
}


}

====================================
BaseSellerAction  继承于ActionSupport



通过url访问
http://www.xxxx.com:8081/mytest/mytest!test.action


AlipayPayMoneyReturnAction.java中大写字母修改为下划线加小写的格式.
http://www.shougongfang.com:8081/paymoney/alipay_pay_money_return!alipayReturn.action
  相关解决方案