<result name="success">/suc.jsp</result> <result name="error">/err.jsp</result> <result name="input">/err.jsp</result>
[quote=引用 43 楼 sysanmei 的回复:] [quote=引用 40 楼 zhangfulv 的回复:] [quote=引用 39 楼 sysanmei 的回复:] web.xml有问题。入口 <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>login.jsp</welcome-file> </welcome-file-list> 这个可以不配置 默认是调用index.jsp 你把login.jsp 放在第二个位置,是找不到的,你换个位置就找的到了,还有配置里面放一个入口就好了,遇到问题不要慌,要多看看问题出现在哪个节点上。
[quote=引用 40 楼 zhangfulv 的回复:] [quote=引用 39 楼 sysanmei 的回复:] web.xml有问题。入口 <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>login.jsp</welcome-file> </welcome-file-list> 这个可以不配置 默认是调用index.jsp 你把login.jsp 放在第二个位置,是找不到的,你换个位置就找的到了,还有配置里面放一个入口就好了,遇到问题不要慌,要多看看问题出现在哪个节点上。
[quote=引用 39 楼 sysanmei 的回复:] web.xml有问题。入口 <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>login.jsp</welcome-file> </welcome-file-list> 这个可以不配置 默认是调用index.jsp 你把login.jsp 放在第二个位置,是找不到的,你换个位置就找的到了,还有配置里面放一个入口就好了,遇到问题不要慌,要多看看问题出现在哪个节点上。
是不是tomcat没配置好了,404是资源未找到,我觉得你应该先试下看进到你action里面的方法里面了没有
[quote=引用 36 楼 zhangfulv 的回复:] [quote=引用 32 楼 qq457557442 的回复:] [quote=引用 11 楼 zhangfulv 的回复:] [quote=引用 10 楼 qq457557442 的回复:] 你的项目本身就有问题.看看是不是jar包的问题.build path看看
web.xml有问题。入口 <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>login.jsp</welcome-file> </welcome-file-list> 这个可以不配置 默认是调用index.jsp 你把login.jsp 放在第二个位置,是找不到的,你换个位置就找的到了,还有配置里面放一个入口就好了,遇到问题不要慌,要多看看问题出现在哪个节点上。
[quote=引用 32 楼 qq457557442 的回复:] [quote=引用 11 楼 zhangfulv 的回复:] [quote=引用 10 楼 qq457557442 的回复:] 你的项目本身就有问题.看看是不是jar包的问题.build path看看
[quote=引用 11 楼 zhangfulv 的回复:] [quote=引用 10 楼 qq457557442 的回复:] 你的项目本身就有问题.看看是不是jar包的问题.build path看看
你那个validate()会 比excute()先执行,校验是没有error这个属性的 应该配置input
你Action类里面有没有写一个方法,返回值为SUCCESS或ERROR
67,513
社区成员
225,880
社区内容
加载中
试试用AI创作助手写篇文章吧