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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:16:25+00:00 2026-06-07T02:16:25+00:00

I have a process that I need to follow, I hope this makes sense.

  • 0

I have a process that I need to follow, I hope this makes sense.

I have a JSP that builds up json data, and sends to a URL. This URL exists, and therefore will be successful.

However, a java based server socket class is listening on a port, and actually picks up the data being sent and processes it. It needs to generate a response for me to receive (ie success or failure codes of what it is going), that I am looking to pick up in the sucess function – but this java socket listener code does not intend on writing this to a JSP or something similar.

Any ideas how the java listener and my success function can meet so I can get the this response.

In my test, I was making the listener code place the response on a JSP and I pick that but, I want a way to not have to place onto a JSP. Is it a case the response (which will be a JSON data) HAS TO actually be served/held within a JSP/PHP/JSON file?

This is my send code below:

$.ajax({    
 type:       "POST",    
 url:        suppliedURL,    
 data:       "jsonData=" + jsonString, // I have already done a json stringify on this. 
 success:    function(data, textStatus, jqXHR) {    
            var jsonJqXHR = JSON.stringify(jqXHR);   
            alert('jsonJqXHR : ' + jsonJqXHR);    
 },    
 error:function (xhr, ajaxOptions, thrownError){    
   alert('Error xhr : ' + xhr.status);    
   alert('Error thrown error: ' + thrownError);    
 },   
 dataType:   "json"                         

});

  • 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-07T02:16:28+00:00Added an answer on June 7, 2026 at 2:16 am

    Javascript running in a browser page has limited communication and interconnection capabilities. One of the things a javascript program running in virtually any browser can do is send out an HTTP request. So the obvious way to get data into a javascript program is via XMLHttpRequest, via the pattern some people call AJAX. This pattern is implemented in the jQuery ajax function.

    The Javascript program needs to connect to an HTTP server – that is where the JSP comes in. It is a Java program that can respond to HTTP GET/POST etc. JSP or a similar HTTP-connected programming environment on the server, is necessary to serve data to the javascript program.

    The only challenge therefore is moving the data from the Java socket program running on the server to the JSP also running on the server. One simple way to handle it is via a shared database or filesystem.

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

Sidebar

Related Questions

I have a process that spawns a helper process. Sometimes I need to debug
I have a process that pickles a dictionary using Python 3.2. I then need
I need to have a background process that runs independent of my app and
I have a list of strings that I need to pass to a process
I have a process that imports a lot of data (950k rows) using inserts
I have tried to follow the upgrade to iOS5 process... but didn't realize that
I have several process that need to run in the background of a Windows
I have Process objects that are monitored from two different views. A Windows.Forms.ListView (actually
I have a process that interfaces with a library that launches another process. Occasionally
I have a process that currently runs in a Delphi application that I wrote

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.