View RSS Feed

Servlet

Servlet tutorials.

  1. Notes on Form Data for Servlets

    by , 11-28-2011 at 06:25 PM
    When you look at the URL in your web browser if you are using a search engine or on a retail site, you will notice URLs http://host/path?user=James+Rogers&s...rish&sub=music. The part after the question mark (i.e., user=James+Rogers&subj= folk&sub=irish&sub=music) is known as form or query data and is the most common way to get information from a Web page to a server-side program. Form or query data can be attached to the end of the URL after a question mark, for ...
    Categories
    Tutorial , HTTP , URL Mapping , Form
  2. Handling Form Data from Servlets

    by , 11-28-2011 at 06:23 PM
    A feature which is of immense benefits to all programmers working with servlets is that all form data parsing is handled automatically. Rather than needing to build your own called for parsing form data, you only need to call the getParameter method of the Http- ServletRequest, providing the relevant parameter name as an argument. You use getParameter in the same way whether data is sent by GET or by POST. The servlet knows which request method was used and calls the proper method to handle the ...
    Categories
    Tutorial , Form