Results 1 to 4 of 4

Thread: How does a servlet handles request and gives response ?

  1. #1
    Join Date
    Jan 2011
    Posts
    18

    How does a servlet handles request and gives response ?

    Hello friends I have been using the core java as far as the java programming is concerned , I am keen in understanding the request being handled and the response been generated . I am a bit aware that the Java servlets has http servlet and response that can be used do the said functions , if you have any sort of knowledge regarding this please let me know about it . I will request a programmer to respond on this .

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: How does a servlet handles request and gives response ?

    When a browser requests a web page, it usually sends some supplementary headers which state things such as:
    • A particular cookies set for that page;
    • which browser or "agent" is
    • generating request, along with details about the operating system, installed browser plugins etc;
    • the referrer (usually the tie that the user clicked on that called the request);
    • what types of content the browser can deal with.

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: How does a servlet handles request and gives response ?

    It's beyond the scope of this tutorial to give all the details of every possibly HTTP request header. And it's really quite rare to require to read request headers. If required, it is suggested that you look at the HTTP protocol requirement if you require more details. Though, we'll come across at a couple of functional cases here by way of example.

  4. #4
    Join Date
    May 2009
    Posts
    529

    Re: How does a servlet handles request and gives response ?

    Generally, we are aware the name of the request header that we desire to read. In this scenario, it is a easy subject of calling getHeader() on the HttpServletRequest object that was passed to our doGet()/doPost() function. For instance, here is how to read the user-agent header, which fundamentally informs us which browser (Internal Exlorer, Mozilla, Safari etc) and operating system is creating the request.

Similar Threads

  1. Windows phone 7:Web-request response?
    By Logan.B in forum Portable Devices
    Replies: 5
    Last Post: 27-10-2010, 06:02 PM
  2. How ASUS XONAR handles DTS/DD to SPDIF OUT
    By Lyric in forum Motherboard Processor & RAM
    Replies: 4
    Last Post: 26-09-2010, 04:01 AM
  3. response.sendError From Servlet
    By ramsun in forum Software Development
    Replies: 5
    Last Post: 11-02-2010, 05:45 PM
  4. Tod request sent - no response received
    By Raffaele in forum Networking & Security
    Replies: 3
    Last Post: 31-07-2009, 10:43 PM
  5. Apple 3G iPhone Handles 1080P Video
    By Clare J in forum Portable Devices
    Replies: 0
    Last Post: 06-09-2008, 01:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,987,803.19106 seconds with 17 queries