28 HTML Form Page to servlet communication | Adv Java Servlet Programming Tutorial | advance java

Video is ready, Click Here to View ×

#HTML #Form #page #to #servlet #Communication: #adv java #Advance #Java #Servlet #Programming #Tutorial
– Form Page can generate request to servlet program; form data as request parameter as values.

– Here form component name like text box, button, radio button etc acts as request param names and values act as request param values.

– Form page generate request to that servlet program whose request url is specified in action attribute of form tag.

– Form page can generate two methodologies based requests.
1) GET method (Useful to send limited amount of data i.e. max of 256kb)
2) POST method (Useful to send unlimited amout of data)

– To process “GET” method based request of form page, we need to override doGet(-,-) method in our servlet program. Similarly to process “POST” method request of form page we need to override doPost(-,-) method in our servlet program.

– Avoid placing request processing logic in service(-,-) method and prefer placing logic in doXxx(-,-)…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.