1.

Which methods are used for reading form data using JSP?

Answer»

JSP is used to handle the FORM data parsing automatically. It DIES so by using the following METHODS depending on the situation:

  • getParameter() − To get the value of a form PARAMETER, call the request.getParameter() method.
  • getParameterValues() − If a parameter appears more than once and it returns multiple values, call this method.
  • getParameterNames() − This method is used if, in the current request, you want a complete LIST of all parameters.
  • getInputStream() − This method is used for reading binary data streams from the client.


Discussion

No Comment Found