我最近将 struts2 从 2.5.33 升级到 6.3.0.2,将 struts2jquery 从 4.0.1 升级到 5.0.2,升级后 theme="bootstrap" 不起作用,如果使用 theme="bootstrap" 它不会加载任何元素UI - 这是我收到的运行时错误“无法加载名为“form”的 freemarker 模板。 theme="simple" 有效,但它弄乱了样式/布局。我不确定我在这里缺少什么,因为升级前工作正常,任何帮助将不胜感激。
//code sample
<%@ taglib="prefix="s" uri="/struts-tags">
//jquery-3.4.1.js script
//jquery-ui.js script
//bootstrap.min.css
<div clas="container">
<s:form name="empform" id="empsrchform" theme="bootstrap"
----
------
</s:form>
</div>
bootstrap插件版本可能与当前struts2版本不兼容。
struts2-bootstrap-plugin的当前版本是5.0.3。