<s:debug/>
为Stack Context写入值
<s:set name="pageId" value="2"/>
ActionContext ctx=ActionContext.getContext(); ctx.put("pageId", "1");
取出Stack Context的值
<s:if test="#pageId==1">class="hover"</s:if>
<s:debug/>
为Stack Context写入值
<s:set name="pageId" value="2"/>
ActionContext ctx=ActionContext.getContext(); ctx.put("pageId", "1");
取出Stack Context的值
<s:if test="#pageId==1">class="hover"</s:if>