can you please tell me how to redirect to next page after successfully login in GWT?
I have created the service interface and its implementions but dont know how to redirect the page after login authentication.
Share your views guyz.
and also tell me how to get sessiontimeout and then redirect automatically to login page in gwt.

Do i need to create different-different HTML files for login, logout and index page? Right now i have only one html file for my project. here i added the rootpanel of login form class. Then i m calling the RPC service over login button and this service is authenticating the username and password. now where i should write the page redirect code? IN onSuccess method or in my Server side service class. and can you tell the exact path of page like Window.Location.Replace("com/gwt/model/client/mainIndex"). Is it write?
–
Vishal ShrimaliApr 23 '13 at 13:04

You can, but you don't need to. You can also make multiple panels and attach/detach them accordingly. After the RPC call is complete, onSuccess(...) of your AsyncCallback is called, so you'd want to put your redirect there. The parameter for replace is an URL, so it would be your HTML page you want to redirect to (see redirect to login in answer)
–
MarioPApr 23 '13 at 13:23

How can i add the different different classes like login and logout in same html's panel. because we can mention our entrypoint and onModuleLoad in only one class. so whenever this entrypoint class load, that tym whole panels are loaded...
–
Vishal ShrimaliApr 23 '13 at 13:37

and how can i add rootpanel in class which does not implement with a entrypoint...??
–
Vishal ShrimaliApr 23 '13 at 13:39

RootPanel.get() always returns the same panel, even when used from different classes. Honestly tough, I think this has nothing to do with the original question anymore. StackOverflow is for help with specific questions and problems, not giving comprehensive tutorials of a broad topic. Thats what the GWT documentation is for.
–
MarioPApr 23 '13 at 13:49