天天看點

HttpServletRequest之getParameter

HttpServletRequest的getParameter()方法内的參數就是jsp中所定義的name的值,比如常常在login.jsp中,<input type="text" name="username"> <input type="password" name="password">索引号引起來的"username"和password"就是getParameter()的參數,

getParameter("username");