The servlet context is an object that contains a servlet's view of the Web application within which the servlet is running. Using the context, a servlet can log events, obtain URL references to resources, and set and store attributes that other servlets in the context can use. (answer supplied by Sun's tutorial).
The servlet mapping defines an association between a URL pattern and a servlet. The mapping is used to map requests to servlets.
The session is an object used by a servlet to track a user's interaction with a Web application across multiple HTTP requests.
In GET your entire form submission can be encapsulated in one URL, like a hyperlink. query length is limited to 260 characters, not secure, faster, quick and easy.
In POST Your name/value pairs inside the body of the HTTP request, which makes for a cleaner URL and imposes no size limitations on the form's output. It is used to send a chunk of data to the server to be processed, more versatile, most secure.
Webmaster 20th of May 2012
Tell us what you feel about Java Servlet Programming Interview Questions and Answers
All comments will be published after review. No login or registration is required to post a comment on Java Servlet Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
So start sharing your thoughts regarding Java Servlet Programming Interview Questions and Answers
Thank you.