Friday, 18 July 2014

Get the Parameters

Whenever client sends a request to server, Request parameters for the servlet are sent in String format. Request parameters are sent in name-value pairs. Given parameter name can have multiple values associated with it.

ServletRequest interface provides below methods to access parameters and its values.
    getParameter(String name)
    getParameterMap()
    getParameterNames()
    getParameterValues(String name)


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment