帮忙看看。实在没辙了。就一个超级简单的struts2程序
struts2吧
全部回复
仅看楼主
level 2
桐花最美 楼主
第一次运行没有问题,能弹出表单。
点了提交。就跳出这个404错误。
2016年11月07日 02点11分 1
level 6
试试return不要success的双引号
2016年11月07日 04点11分 2
怎么可以不要双引号,方法返回是String类型,不带双引号,肯定不行啊。
2016年11月07日 06点11分
回复 桐花最美 :那你写success是为了什么 加双引号就为了返回success这个单词? 你是为了返回result配置,名为success的标准
2016年11月07日 07点11分
回复 Cauury给gay :而这个标准本身就是string类型
2016年11月07日 07点11分
你继承的actionSupport里面有视图名称的有SUCCESS常量,可以不用返回字符串的success
2016年11月26日 14点11分
level 6
2016年11月07日 07点11分 3
result该怎么写呢,那
2016年11月07日 10点11分
回复 桐花最美 :你不是写了么 跳转到index.jsp
2016年11月08日 13点11分
level 1
路径问题。action="loginAction.action"
2016年11月25日 07点11分 5
level 1
jsp页面错了
2016年11月26日 05点11分 6
level 2
你的表单提交的action和你xml文件里头的,action是一样的吗?我怎么看着多了左斜杠
2016年11月26日 14点11分 7
level 1
路径错误真的是最简单的错误了
2016年11月28日 11点11分 8
level 4
登录界面action
写错了。
应该是LoginAction/LoginAction.action
2016年11月30日 10点11分 9
level 4
userLongin/Longinaction.action
2016年11月30日 10点11分 10
level 3
action路径错误
2016年11月30日 19点11分 11
level 1
应该是这样吧:action="${pageContext.request.contextPath}/loginAction.action"
2016年12月14日 13点12分 12
1