0
PARAM我有這樣的代碼:Struts 2的通話用java
<%
String param = "This my value";
%>
<s:hidden name="hdd" value='<%=param%>' />
我想打電話給PARAM變量,但它不工作。
PARAM我有這樣的代碼:Struts 2的通話用java
<%
String param = "This my value";
%>
<s:hidden name="hdd" value='<%=param%>' />
我想打電話給PARAM變量,但它不工作。
是在JSP頁面上定義的參數嗎?如果是,請嘗試使用html標籤「/>,而不是struts2標籤。struts2標籤將根據它的名稱從OGNL堆棧中獲取它的值