小弟初学struts 就想实现以个简单的页面跳转 结果跳转后的页面是个空页面什么都没有。
仔细检查了几遍问题还是解决不了 望各位大大帮忙看下 下面是代码。
这个事index.jsp的页面代码
你的Struts配置中配置了parameter="input",那你的action继承了DispatchAction吧,你的action中的方法名是input,但是你的index.jsp的页面代码是/input.do?method=input'>点击进入
注:这里的method=input中的“input”对应action中的方法,“method”对应parameter="method"。
把跳转的action中的"suc"以及配置文件中的"suc"字符串改为"success"
Struts配置中配置了parameter="method"
这句话的意思是将Struts配置中的parameter="input"改成parameter="method"
应该是struts配置文件中的parameter的问题
把parameter=input改成parameter=method
/input.do?input=input'>点击进入
直接去掉parameter参数配置。