Boostrap 与 Struts 2 兼容吗? [英] Is Boostrap compatible with Struts 2?

查看:33
本文介绍了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.

我需要添加任何额外的罐子吗?

Do I need to include any extra jar?

推荐答案

Struts 2 在渲染 JSP 页面的输出时使用主题.您可以在 Struts 2 Themes 中阅读有关主题的更多信息.要更改默认主题,请将其放入 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆