`
esffor
  • 浏览: 1351291 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

阅读更多

如果在action中有一个实例变量user,user中有一个属性birthday

 

如果在jsp中想访问birthday,有两种方式

1.<ww:property value="user.birthday"/>

2.<%

            String birthday=ActionContext().getContext().getValueStack().findValue("user.birthday");     

    %> 



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics