1
我想在我的項目中使用Struts框架。我想使用html:button
在鏈接中發送參數,但我不知道如何製作它。如何在使用Struts taglib的鏈接中傳遞動態參數值?
換句話說,我要翻譯這行:
<input type="button" onClick="window.location.href='resum.do?action=ViewMessage&&id_message=<%= id_msg %>'" value="View"/>
到Struts的標籤庫,這樣的事情:
<html:button property="" onclick="window.location.href='resum.do?action=ViewMessage&&id_message=<%= id_msg %>'" value="View"></html:button>
但沒有奏效。
不要再使用Struts1,請使用Struts2。 Struts1是EOL(生命的終結)。已過時。死。不適合開始新項目。 –