I suggest reading: http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ and http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications
These links talk about GWT logins, cookies, and security. A lot of what is provided by sessions on the server simply can be provided by static variables within a GWT application; these will exist for the lifetime of the application (the entire time in which the user remains on the application's page). This is one way in which writing a GWT application is more closely akin to writing a desktop application than to writing a server-side web application. I'm not sure whether one GWT application calling another is possible. For starters, both would have to be on the same page; there also probably is setup that the GWT infrastructure must do before onModuleLoad is called. Finally, the generated code for the applications could conflict in some way. I think that much better strategies would be: 1.) Having multiple GWT modules and compiling them into one GWT application. The downside of this is that if you have lots of large modules, compilation will take a *long* time (making development more difficult). 2.) Having each application on a separate page and navigating from one page to the other. Tony -- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.com On Apr 4, 12:46 am, Shank <[email protected]> wrote: > On Apr 3, 10:03 pm, Tony Strauss <[email protected]> > wrote: > > > > > One way is to call Window.Location.assign with the URL of the new > > application (which the URL varying based on the user's identity). > > > We've implemented a similar requirement with our current project. Our > > login page actually is *NOT* a GWT application but instead is a simple > > form (handled by a servlet in our web server). Upon a successful > > login, the servlet returns an HTML page linking to the appropriate GWT > > application for the user. > > > Tony > > -- > > Tony Strauss > > Designing Patterns, > > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com > > > On Apr 3, 10:01 am, Shank <[email protected]> wrote: > > > > I am new to GWT , i have created a app where a user has to login now > > > whenever a user logs in successfully, i have to load a application > > > according to the user logged in . How do i load a new application from > > > another GWT application. > > can i load a new GWT app by just calling the onModuleLoad method of > the second app from the onModuleLoad of the first app ?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
