0

我正在使用 Struts2 和 Freemarker 开发网站。

每当我添加表单标签时,例如:

<@s.form action="foo"> <@s.combobox (...)/>

它会生成一堆我不需要的 html/css/javascript。

有什么方法可以指定不应该生成额外的元素,还是我真的需要进入 Freemarker.jar 并根据自己的喜好编辑模板?

4

1 回答 1

0

你读过 struts2 标签中的“主题”吗? http://struts.apache.org/2.x/docs/why-do-the-form-tags-put-table-tags-around-controls.html http://struts.apache.org/2.x /docs/themes-and-templates.html

于 2010-04-06T00:11:05.973 回答