+ -
当前位置:首页 → 问答吧 → Map request=(Map)ActionContext.getContext().get("request");

Map request=(Map)ActionContext.getContext().get("request");

时间:2011-11-07

来源:互联网

public String execute() throws Exception {
Map request=(Map)ActionContext.getContext().get("request");
request.put("list", readerService.findAllReader());
return SUCCESS;
}

请问Map request=(Map)ActionContext.getContext().get("request");这句是什么意思,为什么实例话了一个
map之后,就可以把数据放入了action的request里了。这里的request不是map型吗?

作者: kouwoo   发布时间: 2011-11-07

看看了

作者: chongjingsky   发布时间: 2011-11-07