首页 > 技术文章 > Struts2添加了<s:debug>后页面无效果的解决方案

songxingzhu 2018-04-12 17:34 原文

一、环境

  Struts2版本 struts2.5

二、问题

  在jsp页面中添加了<s:debug>后页面上无任何展示。

三、解决

  在struts.xml中的struts节点下添加如下常量即可:

  <constant name="struts.devMode" value="true" />




四、效果

  

 

 



推荐阅读