首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts常见有关问题:Cannot retrieve 地图ping for action

2012-11-06 
struts常见问题:Cannot retrieve mapping for action导读:   web.xml配置文件:      action   org.apache.

struts常见问题:Cannot retrieve mapping for action

导读:
  web.xml配置文件:
  
  action
  org.apache.struts.action.ActionServlet
  
  application
  ApplicationResources
  
  
  config
  /WEB-INF/struts-config.xml
  
  
  debug
  2
  
  
  detail
  2
  
  2
  
  
  
  action
  *.do
  
  struts-config.xml中的配置:
  
  
  
  
  
  
  这里的path="/login"不能写成path="/login.do",否则会出现Cannot retrieve mapping for action错误
  表单:
  
  
  
  
  
  这里的action="login.do"可以是action="/login.do"或action="/login"或action="login"


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/daryl715/archive/2007/11/21/1896549.aspx

热点排行