HttpServletRequest之getParameter

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

getParameter("username");


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