Boostrap是否与Struts 2兼容? [英] Is Boostrap compatible with Struts 2?
本文介绍了Boostrap是否与Struts 2兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Bootstrap来开发我的UI。当我在其中使用 textfield
的Struts 2标签时,完整的页面对齐被破坏。当我用普通标签替换 s:
(Struts 2标签)标签时,它正常运行。
I am using Bootstrap for my UI development. When I use Struts 2 tags for textfield
in it, the complete page alignment is destroyed. When I replace the s:
(Struts 2 tags) tags with normal tags, it is working fine.
我需要包括任何额外的jar吗?
Do I need to include any extra jar?
推荐答案
Struts 2在呈现JSP页面的输出时使用主题。您可以在 Struts 2主题中阅读有关主题的更多信息。要更改默认主题,请将它放在 struts.xml中
Struts 2 uses themes while rendering output of the JSP page. You can read more about themes in Struts 2 Themes. To change a default theme put this in the struts.xml
<constant name="struts.ui.theme" value="simple"/>
这篇关于Boostrap是否与Struts 2兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文