ActionContext.getContext().getValueStack().push(pList);//放入到对象栈的栈顶
来源:互联网 发布:淘宝上怎么用微信支付 编辑:程序博客网 时间:2024/05/17 00:51
package com.tfy.oa.action;
import java.util.Collection;
import com.opensymphony.xwork2.ActionContext;
import com.tfy.oa.Util.BaseAction;
import com.tfy.oa.domain.Post;
import com.tfy.oa.service.PostService;
public class PostAction extends BaseAction<Post>{
private PostService postService;
public PostService getPostService() {
return postService;
}
public void setPostService(PostService postService) {
this.postService = postService;
}
public String findAllPost(){
Collection<Post> pList=this.postService.getAllPost();
ActionContext.getContext().getValueStack().push(pList);//放入到对象栈的栈顶
System.out.println("this.postService.getAllPost()=="+this.postService.getAllPost());
for(Post post:pList){
System.out.println("post.getPname()=="+post.getPname());
}
return listAction;
}
}
import java.util.Collection;
import com.opensymphony.xwork2.ActionContext;
import com.tfy.oa.Util.BaseAction;
import com.tfy.oa.domain.Post;
import com.tfy.oa.service.PostService;
public class PostAction extends BaseAction<Post>{
private PostService postService;
public PostService getPostService() {
return postService;
}
public void setPostService(PostService postService) {
this.postService = postService;
}
public String findAllPost(){
Collection<Post> pList=this.postService.getAllPost();
ActionContext.getContext().getValueStack().push(pList);//放入到对象栈的栈顶
System.out.println("this.postService.getAllPost()=="+this.postService.getAllPost());
for(Post post:pList){
System.out.println("post.getPname()=="+post.getPname());
}
return listAction;
}
}
- ActionContext.getContext().getValueStack().push(pList);//放入到对象栈的栈顶
- 用ActionContext.getContext().getValueStack()获得值栈
- ValueStack与ContentMap (ActionContext.getContext().getValueStack().set())
- ActionContext.getContext()的用法
- ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法
- ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法
- ActionContext.getContext().getSession() 的意义
- ActionContext.getContext()的基本用法
- ActionContext.getContext()
- 将lua中的值放入栈顶
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 进程间通信(剪切板、匿名管道、命名管道、邮槽)
- Mysql Tuning tools
- Linux基本操作命令
- Android编码规范(二)--资源等
- 分享功能(分享到新浪微博、腾讯微博、人人网、QQ空间。。。)
- ActionContext.getContext().getValueStack().push(pList);//放入到对象栈的栈顶
- 大话设计模式_责任链模式
- Linux键盘快捷键
- ffmpeg文档--前言
- Eclipse 安装C++
- SWFUpload上传
- 人生职业生涯的五个黄金阶段
- 多线程访问共享内存的不加锁实现方式
- sqlite