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.
我需要添加任何额外的罐子吗?
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 兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Boostrap 与 Struts 2 兼容吗?
- 400或500级别的HTTP响应 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Flexslider 箭头未正确显示 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01