struts2空指针 File: com/opensymphony/xwork2/ognl/SecurityMemberAccess.java Line number: 114

今天碰到一个很蛋疼的问题,在跟着视频学习struts2时,出现一个空指针异常,搞得我快要怀疑人生了

(1)There is no Action mapped for namespace [/] and action name [hello] associated with context path [/jsp].

(2)Messages:    
                File:    com/opensymphony/xwork2/ognl/SecurityMemberAccess.java
                Line number:    114      后面报空指针

经历两个小时的查找测试终于找到了问题所在:下面是关键



将action类放到action包中,问题解决!!!!!!!!!!!!!!!!!!!!

简直啼笑皆非。特此标红,加粗,放大,整斜,纪念我的艰苦的两个小时。

你可能感兴趣的:(struts2,框架出错,struts2.0,空指针,action)