我用struts 配置了一个子模块 struts-config-cao.xml  各个配置都没出问题,在该子模块中新建了一个注册的逻辑  
regist.jsp 如下: 
<html:form action="/cao/regist"> 
name :  <html:text property="name"/> <html:errors property="name"/> <br/> 
pwd :  <html:text property="pwd"/> <html:errors property="pwd"/> <br/> 
<html:submit/> <html:cancel/> </html:form> struts-config-cao.xml 中的配置是: 
<action 
      attribute="registForm" 
      input="/regist.jsp" 
      name="registForm" 
      path="/regist" 
      scope="request" 
      type="com.cao.struts.action.RegistAction" /> 
配置 当第一次进如该页面时 可以正常运行. 可刷新一下再运行是出现  
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /cao/regist 
这样的异常信息. 如果将  <html:form action="/cao/regist"> 中的action 该为 "/regist"  
一次都不可以运行 并出现  
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /cao/regist 
异常 
希望个位高手帮忙解决. 谢谢!