weixin_42304178 2010-03-23 19:29
浏览 201
已采纳

urlrewriter+spring+struts的问题

[code="xml"]


The rule means that requests to /test/status/ will be redirected to /rewrite-status
the url will be rewritten.

/index/(.*)
/index.do?act=$1

[/code]

访问http://localhost:8080/project/index/login抛异常
ERROR [org.apache.struts.actions.DispatchAction] - Action[/index] does not contain method named 'undefined'
java.lang.NoSuchMethodException: com.soft.index.action.IndexAction.undefined(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
at java.lang.Class.getMethod(Class.java:1581)
......

ARN [org.apache.struts.action.RequestProcessor] - Unhandled Exception thrown: class java.lang.NoSuchMethodException
[19:22:37.961] javax.servlet.ServletException: java.lang.NoSuchMethodException: Action[/index] does not contain specified method (check logs)

  • 写回答

6条回答 默认 最新

  • qwe_rt 2010-03-24 00:25
    关注

    [quote]java.lang.NoSuchMethodException: Action[/index] does not contain specified method (check logs) [/quote]
    查看一下logs,异常有变化!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥15 用lstm来预测股票价格
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥170 如图所示配置eNSP
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上