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 273991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:32:28+00:00 2026-05-12T00:32:28+00:00

I have Application written with GWT 1.7. I have one page where I upload

  • 0

I have Application written with GWT 1.7. I have one page where I upload file to the remote server that is on different domain. So, when I do Post to the server files goes to the server but when it’s time to get response I’m getting null in following function:

Servlet:

...
resp.setStatus(HttpServletResponse.SC_CREATED);
resp.getWriter().print("The file was created successfully.");
resp.flushBuffer();
...

GWT:

form.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler() {
            public void onSubmitComplete(SubmitCompleteEvent event) {
                Window.alert(event.getResults());
            }

Javadoc for event.getResults() said following:

Returns: the result html, or null if
there was an error reading it @tip The
result html can be null as a result of
submitting a form to a different
domain.

This is the code example that I tried to follow. It works as is, but when I’m calling my servlet the response is null.

By the way I tried to use Firebug to see Headers and it seems to me that servlet is sending response back. I think it’s just GWT does not like it. Is there any work around for this so I can get my response in GWT?

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-05-12T00:32:28+00:00Added an answer on May 12, 2026 at 12:32 am

    Not to state the obvious but it says right in the quote you posted what is wrong:

    The result html can be null as a result of submitting a form to a different domain.

    It looks like the code sample you link to is on the same domain so it’s not violating the same origin policy for the browser.

    There’s this workaround but it seems to be for earlier version of GWT and only works for Firefox.

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

Sidebar

Related Questions

I have written a scientific GWT application that basically just asks for parameters, performs
I have application (server) written in C++ that are crashing around few hours, looks
I have an application written using C++ Builder 5 that uses the TDocument class.
I have web application written in java using Eclipse. It has just one servlet
I have an application written in C# that invokes some C code as well.
I have application written in C#. Memory usage shows that there is a memory
I have an application (written in C++ with MFC, but I don't think that
I have application written in Java that is using EJB3 + Toplink. I'm using
I have an application written in C# that uses Outlook Interop to open a
We have an application written in C# .NET that is currently used in production

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.