`

srturs2 if标签 访问jsp页面变量

 
阅读更多

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> 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics