HttpServletRequest之getParameter

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

getParameter("username");


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章