今天在开发中发现Invalid path /××× was requested的错误
现将问题分析及解决方法记载如下:
假设 /login 目录
首先判断是action配置问题;
根据网上资料,一般是struts-config.xml中login的配置错误;
找到
<action-mappings>
<action path="/login"
type="org.springframework.web.struts.DelegatingActionProxy"
scope="request" parameter="method" name="loginForm">
<forward name="tologin" path="" />
</action>
</action-mappings>
页面使用的login.do?method=×××中,login必须与配置文件中的path相同
其次,loginForm的存在与否在于使用该Action过程中是否使用,在页面使用<form>时,必须与该form同名
再次,如果struts配置正确,考虑web.xml中是否正确导入你需要的。
以上。
分享到:
相关推荐
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 看了下Git命令能否正常使用 命令行git –help ...
ORA-01017: invalid username/password; logon denied Oracle数据库报错解决方案一-附件资源
myelicpse 出现Invalid location of tag的问题解决方法
config.sub Invalid configuration `xxx': machine/OS `XXX' not recognized问题解决
解决 cvc-complex-type.2.4.d: Invalid content was found 具体参考http://henatne.iteye.com/blog/837186
VMware Workstation Pro 14导入ova报错问题解决方法(Invalid target disk adapter type pvscsi)
主要介绍了微信js sdk invalid signature签名错误问题的解决方法,结合实例形式分析了微信签名错误问题相关解决方法,需要的朋友可以参考下
struts4 使用Struts2中内部类中的方法进行自定义类型转换,用到的类StrutsTypeConverter struts5 增加集合类型,使用范型 struts6 直接设置要进行类型转换的字段值 struts7 制作一个表单,对表单中的内容进行...
唯一解决 Protel 99 SE 'Format '%x' invalid or incompatible with argument' 的方法 4核的电脑
关于MyEclipse对Struts2配置文件较检异常 Invalid result location valueparamete
打开vs提示invalid handle 解决方法
重装win7旗舰版系统后启动时提示invalid partition table的解决方法.docx
Invalid
invalid LOC header (bad signature)问题解决,快速查找与删除有问题的jar包
主要介绍了引入mybatis-plus报 Invalid bound statement错误问题的解决方法,需要的朋友可以参考下
Genesis常见错误及其解决方法
Altium Designer 19 原理图复制出现InvalidParameter at AdvSch.dll, Base Addre... 报错的解决办法
NULL 博文链接:https://universes.iteye.com/blog/854485
CRYPT_INVALID_PRIME_SIZE,/* Invalid size of prime requested */ CRYPT_PK_INVALID_PADDING /* Invalid padding on input */ }; #include #include #include #include #include #include #include #...