Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7789195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:13:30+00:00 2026-06-01T21:13:30+00:00

i have gwt app that if the user fail the authentication, it kick the

  • 0

i have gwt app that if the user fail the authentication, it kick the user out to login page, which is a non-gwt page, what the function that i can use to do the redirection on the client side?

here is my code:

    userService.getCurrentUser(new AsyncCallback<User>() {
        public void onFailure(Throwable exception) {
            Window.alert(exception.getMessage());
            GWT.log("getCurrentUser failed", exception);

            //go to home.html, how?

        }

        public void onSuccess(User result) {        
            m_eventBus.fireEvent(new LoginEvent(result));
        }
    });

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:13:32+00:00Added an answer on June 1, 2026 at 9:13 pm

    Try Window.Location.assign(url), or Window.Location.replace(url), depending on how you want the changing page to affect browser history.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written an GWT app and a static Intro page that introduces the
We have a gwt app that uses jcifs to pull the user name from
I have a GWT application that accept these tokens: http://127.0.0.1:8888/app.html?gwt.codesvr=127.0.0.1:9997#user&someuser This will open up
I have a GWT app that makes an RPC call to a server to
In my GWT app I have the following model class: import com.google.gwt.user.client.rpc.IsSerializable; public class
We have a GWT app that has multiple screens, based off of a menu.
I have a gwt app that requires GWT Recaptcha for one of its part.
I have a simple host page for a GWT app with an input button
I have a newly coded GWT/GAE app that uses RequestFactory and Editors on the
I have this gwt app which say, runs on http://mygwtapp.com/ (which is actually: http://mygwtapp.com/index.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.