English 中文(简体)
我如何将服务器会议变量和特性传给全球金星发动机?
原标题:How can I pass server session variables and attributes to the GWT engine?

I am wondering whether we can pass session attributes and parameters from JSP to GWT Entry point.

和我一样,“Stuts2”与WT。

Now, my question is, Can we pass a session attribute from JSP to GWT Entry point? Thanks in advance.

问题回答

回答是JP+GBT Dictionary等。

利用JP(而不是html档案)作为主机,在GWT之后,在模块负荷上打上电传班。

<script>
  var info = {js object structure}; // Use Dictionary class to retrieve info.
</script>

https://stackoverflow.com/questions/9065977/gwt-platform-login-session-menagment/9090460#90460>GWT-Platformlogin + session management

GWT中的中层参数:

曼 谷 GWT 服务器上的房地产使用?


但是,通过会议达到切入点可能并不有利。 乞讨的问题是,在届会结束时会发生什么情况,世界展望组织客户仍在浏览中?

我猜测你可以核实,如果会议是平常的,你就会有一个窗口。 所在地点要求找回GWT客户。 这不是一种良好做法。 使用美国宇宙航空研究开发机构的原因之一,是不必说是 s(我指的是,不必更新你的网页),同时进行客户-服务器的数据交换。

您应当通过从服务器到客户使用的static信息,但不能通过会议。

您的架构应在会议到期时强制重新认证,会议设计应作为主人(如果你正在使用教育、科学和技术部或请求书目)或作为反馈反应数据结构的一部分(如果使用皇家计算机程序)进行。

我不想忘记,为什么你想通过届会反对,因为你们都希望在/code>而不是在<代码>上使用。 GWT UIside am I right?

您可在WTG会议上提出反对。 通过以下方式提供服务:

  HttpServletRequest request = this.getThreadLocalRequest();
  HTTPSession session = request.getSession();

之后,你可以采用获取和确定会议属性的方法:

  session.setAttribute("XXX", object);
  session.getAttribute("XXX")

EDIT:

I think then there isn t straight forward solution, the workaround can be as follow:

在<代码>上的切入点 可在<条码>/条码>物体上查阅的GWT用户密码。

  HttpServletRequest request = this.getThreadLocalRequest();
  HTTPSession session = request.getSession();

Get the attributes and parameter you want from session object and return it to client in the form of beans.

我的申请,我用 hidden中的隐藏箱子:

<input category=“hidden” id=“dir_lat”=“<%=request.getattribute (“foo”) %>>/>

之后获得价值。 申请:

String foo = ((InputElement) doc.getElementById(“dir_lat”)getValue (;





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签