struts异常_does not start with a "/" character
2007-09-11 10:48
441 查看
struts异常_does not start with a "/" character
异常为 Path logon.jsp does not start with a "/" character要在struts-config.xml中修改
input="logon.jsp"> ==>input="/logon.jsp">
path="login" ==>path="/login"
如:
<action
attribute="addbookForm"
input="/logon"
name="addbookForm"
path="/logon.jsp"
scope="request"
type="classmate.action.AddbookAction">
<forward name="success" path="/login.jsp" />
</action>
其中<action>部分是说明action的属性。
Path 指定Action处理的URL
Type 指定Action的类名
Name 指定Action主力的ActionForm名,与<form-beans >元素的name属性匹配。
Scope 指定ActionForm存在的范围
Input 指定包含客户提交表单的网页,如果ActionForm的Validate方法返回错误,则因该把用户请求转发到这个网页。
Validate 如果取值为true,则表示ActionServlet应该调用ActionForm的validate方法
Forward 就是Action的execute方法执行完毕后,把客户请求在转发给相应的页面。
相关文章推荐
- struts异常_does not start with a "/" character
- struts异常_does not start with a "/" character
- Path register.jsp does not start with a "/" character
- Path does not start with a "/" character 问题的解决
- Path does not start with a "/" character 问题的解决(2)
- java.lang.IllegalArgumentException: Path index does not start with a "/" character
- java. lang. IllegalArgumentException: Path does not start with a "/" character
- Tag file directory /struts-tags does not start with "/WEB-INF/tags"
- java.lang.IllegalArgumentException: Path index does not start with a "/" character
- 从 "specified with /SECTION option does not exist" 说开
- 串口调试,提示the given port name does not start with COM/com异常解决办法,,发现是打印机在搞怪
- the given port name does not start with COM/com异常解决办法
- MySQL编译安装的CMake Error: The source directory "/root/mysql-5.6.10/-with-ssl" does not exist.
- 解决连接MySQL时出现securityException异常,并且会有"That assembly does not allow partially trusted callers"的异常信息
- HTTP Status 500 - Tag file directory /tagfiledoes not start with "/WEB-INF/tags"
- Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option t
- Replace "-" with an "en dash" character (–, &&;#8211;) ?
- 关于C#中的错误:The type 'X' does not exists in the "Y"
- The declared package "com.XXX" does not match the expected package ""
- xcode 报错xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer/") does not