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 vhdl+MODELSIM
  • ¥20 simulink中怎么使用solve函数?
  • ¥30 dspbuilder中使用signalcompiler时报错Error during compilation: Fitter failed,求解决办法
  • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
  • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • ¥15 知识蒸馏实战博客问题
  • ¥15 用PLC设计纸袋糊底机送料系统
  • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
  • ¥15 用C语言输入方程怎么
  • ¥15 网站显示不安全连接问题