Java Servlets
<form method="get" action="/servlet/search"> Question: <input type="text" name="query"><p> <input type="submit"></p> </form>You can get the value of the
query
parameter with String query = req.getParameter("query");
select
, then you can get all the values with String[] queries = req.getParameterValues("query");
public Enumeration ServletRequest.getParameterNames();
28 of 89