Struts2使用开发模式遇到问题。本人刚学,希望各位能帮忙解决一下。感谢。
<constant name="struts.devMode" value="true" />
<package name="default" namespace="/" extends="struts-default">
<action name="hell">
<result>
/Hello.jsp
</result>
</action>
</package>
刚学Struts2 遇到个问题。
使用 <constant name="struts.devMode" value="true" /> 开发模式
然后在重新启动tomacat之后,把 struts.xml中的 action改了名字之后, 打开页面 出现了 这个异常,怎么解决。
Struts Problem Report
Struts has detected an unhandled exception:
Messages: There is no Action mapped for namespace [/] and action name [hello] associated with context path [/Struts2_0100_introduction].
如果我又把action换回之前的名字,页面还是能正常显示。