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值 就加上
本文探讨了Struts2框架中<s:textfield>和<s:password>等标签不显示Label的问题,并列举了三种可能的原因,包括struts.properties配置文件、struts2.xml配置文件以及JSP页面form标签的theme属性设置为'simple'。
1万+

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



