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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:06:20+00:00 2026-06-18T04:06:20+00:00

I am writing a java servlet in a GWT app which handles the export

  • 0

I am writing a java servlet in a GWT app which handles the export functionality of a HighStock chart. I have used the ExportController and modified it for GWT. I have pointed the export url on client side javascript, to this new servlet. I can see that when I click download a png, the browser makes a post call to this new servlet, but i don’t get any parameters in the request. The request params(svg, options, etc) are all nulls.
Can someone point me to, what I am missing here?

  • 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-18T04:06:21+00:00Added an answer on June 18, 2026 at 4:06 am

    Actually the highcharts export module sends a “multipart/form-data” request. I was trying to parse the parameters as get request. This is how you can parse a multipart/formdata request-

    if (!ServletFileUpload.isMultipartContent(req)) {
                throw new ServletException("Not a file upload request");
            }
    
            ServletFileUpload upload = new ServletFileUpload();
            FileItemIterator iter;
    
            iter = upload.getItemIterator(req);
            while (iter.hasNext()) {
                FileItemStream item = iter.next();
                InputStream stream = item.openStream();
                if (item.isFormField()) {
                    if (item.getFieldName().equalsIgnoreCase("svg")) {
                        svg = Streams.asString(stream);
                    }
    

    …
    …
    }
    }

    https://gist.github.com/4695345

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

Sidebar

Related Questions

I'm writing a Java servlet in Eclipse (to be hosted on Google App Engine)
I am writing a Java servlet, using Tomcat as the container, which creates and
I'm writing my first JAVA servlet and I have a question. May be it's
I have written a java servlet that uploads multiple files, I used cURL to
I'm writing a java servlet that calls a function in a jar. I have
I'm writing a servlet, which is executed in Java servlet container (eg, JBoss, Jetty,
I am writing a web app in java. In my html file I have
I am writing a web app with a java servlet back end and I
I'm writing HTML code for a Java servlet. I first write the code in
I am writing java code. which will work on windows and linux. some code

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.