Copyright © 2001 Qusay H. Mahmoud
27
Retrieving Parameters
l
Use:
–
public String getParameter(String name)
–
public String[] getParameterValues(String name)
l
l
So if you have a parameter name “username”
in a form then to retrieve the value use:
–
String name = request.getParameter(“username”);