【发布时间】:2014-01-21 17:34:20
【问题描述】:
我正在尝试在我的项目中使用 Struts 框架。我想使用html:button在链接中发送参数,但我不明白如何制作。
也就是说,我要翻译这一行:
<input type="button" onClick="window.location.href='resum.do?action=ViewMessage&&id_message=<%= id_msg %>'" value="View"/>
到 Struts taglib,类似这样:
<html:button property="" onclick="window.location.href='resum.do?action=ViewMessage&&id_message=<%= id_msg %>'" value="View"></html:button>
但是没有用。
【问题讨论】:
-
不要再使用 Struts1,使用 Struts2。 Struts1 是 EOL(生命终结)。已弃用。死的。不适合开始新项目。
标签: java jsp struts struts-1 taglib