我用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
异常
希望个位高手帮忙解决. 谢谢!
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
异常
希望个位高手帮忙解决. 谢谢!
解决方案 »
- 关于JAVA开发中两个javaw.exe进程问题
- 大学里男生肯定会做的八件事
- jfreechart实例
- jsp页面中使用Collection方法显示多条数据的问题
- struts2上传文件时在struts.xml的配置有什么意义啊?
- 求助!添加问题成功 ibtais中user.xml中的.page.end与page.start怎么赋值的?
- 两个Vector相减可以吗?
- rs.getColumnCount()问题?
- 超级难度问题,请高手相助!!(加分100!!!!)
- 在jsp中如何设置显示中文,我用meta charset=gb2312 不好用
- 如何获得<logic:iterate/>标签中一条记录的属性呢?
- webservice 问题
换成遨游试了一下果然没有问题了。
谢谢拉。。