Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Architecture & Framework
» Spring Framework
打印话题 寄给朋友 订阅主题 |
作者 | Re:[求助][急]如何将活动的servlet 注入 bean里 [Re:floater] |
cliff
发贴: 11 积分: 0 |
于 2006-10-27 23:21
floater wrote: so what's your suggestion? please indicate a right way! sometimes you need to get env variables to handle some logic such as session checking, how could you do that without them? I have to emphasize that I don't want to involve Spring MVC. THe general question about this issue is that we have some env object created by the server, and we want to get that to handle something. Since the objects are created by the server, we don't know how to get them outside the server env. If we use servlet or Struts or any other framework, we know that all the env objects are injected by the server, we can get them as the methed's parameter or server objects' properties. So we don't want to care about them, anytime we want to use them, we can get them.
cliff edited on 2006-10-27 23:32
学java的朋友,请一起来投票让sun推出中文jdk文档!!! |
话题树型展开 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |