如何使用Struts taglib在链接中传递动态参数值



我正在尝试在项目中使用Struts框架。我想使用html:button在链接中发送参数,但我不明白如何制作。

换句话说,我想翻译这一行:

<input type="button" onClick="window.location.href='resum.do?action=ViewMessage&&id_message=<%= id_msg %>'" value="View"/>

to struts taglib,类似的东西:

<html:button property="" onclick="window.location.href='resum.do?action=ViewMessage&&id_message=<%= id_msg %>'" value="View"></html:button>

但是它不起作用。

html:button标签仅在form标签内使用。请参阅文档

此标签仅在嵌套在表单标签主体内时有效。

还设置属性属性。