日期:2014-05-16 浏览次数:20471 次
将标签的值赋给<% %>中的变量,如依照如下操作:
<s:set name="var1" scope="request" value="employId" />
<%
String var1 = request.getAttribuet("var1");
%>
<s:property value="#request.var1" />
将<% %>中的变量的值赋给标签,则可:
<%
String var1 = "This is a test...";
request.setAttribute("var2", var1);
%>
<s:property value="#request.var2" />