esffor 发表于 2013-2-6 09:56:43

webwork中使用java代码片段访问值栈

如果在action中有一个实例变量user,user中有一个属性birthday
 
如果在jsp中想访问birthday,有两种方式
1.<ww:property value="user.birthday"/>
2.<%
            String birthday=ActionContext().getContext().getValueStack().findValue("user.birthday");     
    %> 
页: [1]
查看完整版本: webwork中使用java代码片段访问值栈