最近发现struts2的标签不管是<s:textfield>还是<s:password>一概不显示label了,连换行都不换了。
查找原因有三种情况:
1、发现原来struts.properties下多了这句话:
struts.ui.theme=simple
2、struts2.xml 中有
<constant name="struts.ui.theme" value="simple" />
3、 jsp页面form标签有属性 theme="simple"如果想不显示Label值 就去掉。
查找原因有三种情况:
1、发现原来struts.properties下多了这句话:
struts.ui.theme=simple
2、struts2.xml 中有
<constant name="struts.ui.theme" value="simple" />
3、 jsp页面form标签有属性 theme="simple"如果想不显示Label值 就去掉。
本文探讨了Struts2框架中使用特定配置导致<s:textfield>和<s:password>等标签的Label无法正常显示的问题,并列举了几种可能的原因。
6171

被折叠的 条评论
为什么被折叠?



