server response

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skyline789
    New Member
    • Nov 2006
    • 4

    server response

    Hi guys!
    I m doing a project in which I ve been given the server class file and I ve to come up with the client which has to send predefined requests containing customer name and his card number to the server running on local host and then the server will reply back with a response to show the statement. As far as I am concerned, I will have to include html code in my client to output the server`s response but how I m gonna make a connection between the server response and my client in order to display the output?

    any ideas would be much appreciated.
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Originally posted by skyline789
    Hi guys!
    I m doing a project in which I ve been given the server class file and I ve to come up with the client which has to send predefined requests containing customer name and his card number to the server running on local host and then the server will reply back with a response to show the statement. As far as I am concerned, I will have to include html code in my client to output the server`s response but how I m gonna make a connection between the server response and my client in order to display the output?

    any ideas would be much appreciated.
    If I understood your question, the solution for this;
    you have to create a HTML Form to accept user inputs and POST them to a Servelet or JSP. from there display them back to the client.
    be a bit more specific, do you have an example of what you want to happend?

    Comment

    • skyline789
      New Member
      • Nov 2006
      • 4

      #3
      Thanks for your reply. Actually there is no need for an input form. I will send the customer name and card number in strings which have to be encoded into byte sequences through my client servlet to the server running on port3590( server is given already). then i will wait for server response and once i get the response i will have to display the response(bank statement) in html format.

      this is the specification sheet (exercise 1 only) you can download it from the link below and have a look and help me out dude and I will be much appreciated.

      link :http://www.zshare.net/download/44116405e41a48/

      Once you read it you get the idea. waiting for your reply. thanks

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by skyline789
        Thanks for your reply. Actually there is no need for an input form. I will send the customer name and card number in strings which have to be encoded into byte sequences through my client servlet to the server running on port3590( server is given already). then i will wait for server response and once i get the response i will have to display the response(bank statement) in html format.

        this is the specification sheet (exercise 1 only) you can download it from the link below and have a look and help me out dude and I will be much appreciated.

        link :http://www.zshare.net/download/44116405e41a48/

        Once you read it you get the idea. waiting for your reply. thanks
        I'm not going to open that link (we prefer all problems to be described here).
        In your servlet you can use the PrintWriter available through response.getWri ter to write the HTML back to the output page.

        Comment

        Working...