Struts2 如何将struts.xml中的常量值放入struts 2的注释@Result中?

Struts2 如何将struts.xml中的常量值放入struts 2的注释@Result中?,struts2,annotations,constants,Struts2,Annotations,Constants,我想在struts.xml中声明一个常量值 范例 这可能吗?我需要配置什么 谢谢Hii,我也在搜索相同的,有人能对此提出建议吗。。。。 <constant name="my.name" value="William Miranda de Jesus"></constant> @Result(name="input", location="/etc/htdocs/_templates/${my.name}/error.vm", type="velocity")

我想在struts.xml中声明一个常量值 范例

这可能吗?我需要配置什么


谢谢

Hii,我也在搜索相同的,有人能对此提出建议吗。。。。
<constant name="my.name" value="William Miranda de Jesus"></constant>
@Result(name="input",  location="/etc/htdocs/_templates/${my.name}/error.vm", type="velocity")