0
我試圖通過鏈路發送ID屬性的值通過<html:link>
<html:link action="action?method=view&newsID='<bean:write name="news" property="id"/>'">View</html:link>
或
<input type="hidden" name="newsID" value='<bean:write name="news" property="id"/>'/>
<html:link
action="action?method=view&newsID=${newsID}">
View
</html:link>
但是,沒有什麼工作發送參數值struts1中。你可以幫我嗎?
能做些什麼傳遞的參數爲隱藏? – Ray 2012-08-03 05:49:57
否。鏈接始終發送GET請求,GET的參數始終位於查詢字符串中。 – 2012-08-03 05:55:02