No result defined for action com.weiyi.bbs.action.LoginAction and result success总结

来源:互联网 发布:js选取元素 编辑:程序博客网 时间:2024/05/16 01:57

1  第一种原因:配置文件struts.xml标签等写错,如struts写成struts2或者strut 、extends="struts-default" 中写成struts_default、result配置name属性写错或未填写action对应的返回值等、这种亏可不能吃啊。。。囧 

2  在package里面增加 namespace="/" 告诉系统是从根本录寻找

   只要1步没犯错误,原因应该就是这个了。