English 中文(简体)
GWT外部服务班
原标题:Get session from outside service class in GWT

我成功地利用了以下服务利用本届会议:

getThreadLocalRequest().getSession()

然而,我的申请被分成几层,一种与我的服务相分离的方法,会把另一种方法从商业层面传给另一个方法,然后称作DAO层方法。

In DAO layer I would like to access some information kept in session. Here is the way I can see :

  • Pass the HttpSession object in every methods ... But I don t want to do that

是否有其他办法这样做?

是否有一些已经创建的供应商会给我本请求会议?

感谢!

最佳回答

由于你的申请已经分层,因此为什么污染了贵国的DAO层,而其具体执行部分就是一个吉大港山区生态目标? 这当然不是从建筑角度看待的道路。 这还使单位检测更加困难。

问题回答

暂无回答




相关问题
Refresh the UI in gwt

I have created some custom composite widget, which listens to an events (in my case loginEvent). Once the event is caught the state of the widget changes so as the way it should look (in my case I ...

How to create a development/debug and production setup

I recently deployed inadvertently a debug version of our game typrX (typing races at www.typrx.com - try it it s fun). It was quickly corrected but I know it may happen again. After digging on ...

GWT error at runtime: ....style_0 is null

My code works fine in IE 8, but on firefox 3.5, the javascript fails to load. I used firebug to figure out why, and the error I get is (GWT detailed mode) My suspicion is that some style is not ...

GWT s hosted mode not working

I ve been stumped for a while trying to figure out why my GWT demo app isn t working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the ...

How to disable Google Visualizations Tool Tips?

Does anyone know how to disable the tool-tip boxes that popup when a Google Visualizations chart is clicked (Selected)? Following the sample code at Getting Started with Visualizations, the "...

GWT 2 CssResource how to

I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and ...

热门标签