1
2
3
4
5
6
7
8
9
10
|
<%
int
rown =
2
;
request.setAttribute(
"rown"
,rown);
%>
<s:
if
test=
"#attr['rown']==1"
>
<h1>rown的值为
1
</h1>
</s:
if
>
<s:elseif test=
"#attr['rown']==2"
>
<h1>rown的值为
2
</h1>
</s:elseif>
|