jsp request對象


getParameter( ) :返回name指定參數的參數值

String[]  getParameterValues(String name)    :返回包含參數name的所有值的數值

getAttribute(Sting name)  :返回指定屬性的值  例如 request.getAttribute("password")  獲取密碼

setAttribute(string Object) :存儲此請求的屬性值 例如 request.setAttribute("password","123456")  設置密碼

setCharacterEncoding :防止從客戶端輸入的中文產生亂碼   設置為request.setCharacterEncoding("utf-8")


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM