struts 子模块问题

Shine_Panda 2008-04-17 02:18:40
我用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
异常


希望个位高手帮忙解决. 谢谢!
...全文
39 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Shine_Panda 2008-04-17
  • 打赏
  • 举报
回复
呵呵。
换成遨游试了一下果然没有问题了。
谢谢拉。。
TuLu1988 2008-04-17
  • 打赏
  • 举报
回复
浏览器的问题

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧