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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:32:31+00:00 2026-06-09T11:32:31+00:00

My Problem : The json string returns as a file. When i call the

  • 0

My Problem: The json string returns as a file. When i call the getJSONResult action it will give me a file with the json string in it, which i can open or download.

I think it’s a configuration problem, but i can’t find it. I would be very glad if somebody could help me, thanks guys!

I have an opening form with a submit that uses an action and execute method to get the data. Then, the only way I could get jquery to work was to put an action and execute method that just returns ‘success’ and then I go onto my jquery grid with a 3rd action.

struts.xml

<struts>
   <package name="live" namespace="/live" extends="struts-default,json-default">
      <action name="gridAction" class="core.action.AdminAction"> 
         <result name="success" type="json"></result> 
         <result name="error">/live/YYY.jsp</result> 
      </action>
   </package>
</struts>
  • 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-09T11:32:33+00:00Added an answer on June 9, 2026 at 11:32 am

    I assume you’re using Internet Explorer, because I’ve never gotten this problem with Google Chrome (and there’s even a plug-in that formats it all nicely and prettily: https://chrome.google.com/webstore/detail/chklaanhfefbnpoihckbnefhakgolnmc)

    Searching around, I’ve come up with two pages that offer the same solution to your problem, if indeed you are using IE:

    View JSON in Internet Explorer

    How can I convince IE to simply display application/json rather than offer to download it?

    The main gist of the solution lies here:

    Need to view JSON responses in IE?

    1. Open Notepad and paste the following:

      Windows Registry Editor Version 5.00;
      ; Tell IE 7,8,9 to open JSON documents in the browser on Windows XP and later.
      ; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
      ;
      [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
      "CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
      "Encoding"=hex:08,00,00,00
      [HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json]
      "CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
      "Encoding"=hex:08,00,00,00
      
    2. Save document as IE-Json.reg and then run it.
      Note: This has been tested on Windows XP and Windows 7 using IE 7, 8, 9.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So a PHP file returns a string ( to an ajax call ) like
I am using curl to get a json file which can be located here:
I've got a AJAX call that returns a JSON string containing several different DateTimes.
I am beginner trying to complete a simple JSON problem on SingPath which asks
I'm having a problem parsing a JSON file in AS3. Im trying to parse
Well I have a problem reading the JSON data in jQuery, which is outputted
So I am trying to load test a REST API which returns a JSON
I have a file called config.json which have { book: { config: { uuid:
I'm looking to json_decode a string, but running into a problem with the array
I have a problem with Json formating returned from .ASMX I need to return

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.