如何通过GWT从入口点传递给另一个入口点? [英] how to pass from an entrypoint to another with GWT?

查看:119
本文介绍了如何通过GWT从入口点传递给另一个入口点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个web应用程序,但是在创建2个网页时遇到问题。我想有一个认证页面,然后我想传递给另一个。我创建了2个入口点,我想从另一个页面调用一个页面。任何人都知道如何做到这一点?

解决方案

如果您问如何为我的GWT应用程序实现登录页面?,每个人都会将您重定向到这篇半完整文章: LoginSecurity常见问题解答 ,它只给你一半的解决方案。它讨论了jBCrypt以及需要在客户端和服务器之间每次RPC调用时传递sessionID。然而,它并没有阐明解决方案的许多关键方面:
$ b $ 1)根据作者,checkWithServerIfSessionIdIsStillLegal()方法旨在显示一个登录框if sessionID不再合法,或者允许您访问主应用程序。但你在哪里放置这种方法? 在你的后面!EntryPoint开始执行在哪里?它是在一个单独的GWT应用程序中?它在同一个GWT应用程序中是不同的入口点吗? 2)立即与1相关的是:登录箱在哪里住在这个架构中?同样,它是否与您限制访问的主要部分在同一个GWT应用程序中?如果是这样,它是否被指定为单独的入口点?或者,LoginBox只是一个独立的GWT应用程序,负责将客户机重定向到主应用程序,只有在其checkWithServerIfSessionIdIsStillLegal()方法返回true时才会将其重定向到主应用程序。



没有可用的示例或解释,这是相当令人沮丧的。


I want to developp a web application, but i have a problem in the creation of 2 web pages. I want to have an authentification page then i want to pass to the other one. I created 2 entrypoints and i want to call one page from the other. Anyone knows how to do it ?

解决方案

If you ask the question of "How do I implement a login page for my GWT application?", everyone just redirects you to this semi-complete article: "LoginSecurity FAQ", which only gives you half the solution. It talks about jBCrypt and the need to communicate sessionID's with every RPC call between the client and the server. However, it does not shed any light on many crucial aspects of the solution:

1) According to the author, checkWithServerIfSessionIdIsStillLegal() method is intended to either display a loginbox if sessionID is no longer legal or allow you access to the main application otherwise. But where do you place this method? Where is "right after your !EntryPoint begins execution"? Is it in a separate GWT application? Is it a different entry point in the same GWT application? Where do you physically call this method from?

2) Immediately relevant to 1 is: where does the loginbox live in this architecture? Again, is it in the same GWT application as the main part you're restricting access to? If so, is it specified as a separate entry point? Or is the LoginBox just a separate GWT Application that is responsible to redirect guests to the main application only if its checkWithServerIfSessionIdIsStillLegal() method returns true?

There are no examples or explanations available, which is quite frustrating.

这篇关于如何通过GWT从入口点传递给另一个入口点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆