I did it few years ago, and as I remember I did the following 1) created my own template in forlder
src/template/_theme_/_template_.ftl
theme - it is name of theme used in struts tag definition (see below). E.g. ajax (already defined and existed in Struts2 theme) template - name of your template. E.g. inline-submit:
src/template/ajax/inline-submit.ftl
2) now in jsp, when I want to show that some tag should use that template, I wrote the following:
发布评论
评论(1)
我几年前做过,我记得我做了以下事情
1) 在 forlder theme 中创建了我自己的模板
- 它是 struts 标签定义中使用的主题名称(见下文)。例如ajax(已经定义并存在于Struts2主题中)
template - 模板的名称。例如 inline-submit:
2) 现在在 jsp 中,当我想表明某个标签应该使用该模板时,我写了以下内容:
仅此而已。
在你的情况下,你需要写这样的东西:
I did it few years ago, and as I remember I did the following
1) created my own template in forlder
theme - it is name of theme used in struts tag definition (see below). E.g. ajax (already defined and existed in Struts2 theme)
template - name of your template. E.g. inline-submit:
2) now in jsp, when I want to show that some tag should use that template, I wrote the following:
that's all.
In your case you need to write something like that: