<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            JSP基本語法與簡單表單的處理

            時間:2024-11-10 07:37:38 JAVA認證 我要投稿
            • 相關推薦

            JSP基本語法與簡單表單的處理

              JSP基本語法與簡單表單處理,setAttribute(String,Object)把變量的值保存在application中;

              jsp語法

              jsp指令元素

              (1)include:導入其它文件夾

              (2)page:

              language:用什么語言,只能為JAVA

              contentType:MIME類型

              import:導入java包

              (3)taglib:自定義標簽庫

              jsp常用標準元素

              (1)jsp:forward:跳轉到其它頁面

              (2)jsp:include:插入其它文件 eg:

              (3)jsp:plugin:插入applet小程序

              (4)jsp:param:參數傳值

              jsp內置對象

              (1)request:常用方法

              getParameter():提取表單元素的值

              getRemoteAddr():獲取客戶端IP值

              (2)response:

              sendRedirect():重定向到其它網頁

              setcontentType();設置MIME值

              (3)out:向網頁輸出

              (4)application

              setAttribute(String,Object)把變量的值保存在application中;

              getAttribute(String)獲取保存在applicaion中的值

              removeAttribute(String)刪除保存在application中的值

              (5)session

              setAttribute(String,Object)把變量的值保存在session中;

              getAttribute(String)獲取保存在session中的值

              removeAttribute(String)刪除保存在

              jsp語法

              jsp指令元素

              (1)include:導入其它文件夾

              (2)page:

              language:用什么語言,只能為JAVA

              contentType:MIME類型

              import:導入java包

              (3)taglib:自定義標簽庫

              jsp常用標準元素

              (1)jsp:forward:跳轉到其它頁面

              (2)jsp:include:插入其它文件 eg:

              (3)jsp:plugin:插入applet小程序

              (4)jsp:param:參數傳值

              jsp內置對象

              (1)request:常用方法

              getParameter():提取表單元素的值

              getRemoteAddr():獲取客戶端IP值

              (2)response:

              sendRedirect():重定向到其它網頁

              setcontentType();設置MIME值

              (3)out:向網頁輸出

              (4)application

              setAttribute(String,Object)把變量的值保存在application中;

              getAttribute(String)獲取保存在applicaion中的值

              removeAttribute(String)刪除保存在application中的值

              (5)session

              setAttribute(String,Object)把變量的值保存在session中;

              getAttribute(String)獲取保存在session中的值

              removeAttribute(String)刪除保存在session中的值

              getID:獲取session編號

            【JSP基本語法與簡單表單的處理】相關文章:

            有關語法和表單的PHP教程08-08

            css的基本語法07-16

            jQuery簡單的表單應用10-06

            PETS基本語法解析08-12

            PHP的基本語法的介紹10-07

            俄語語法基本框架09-27

            日語基本語法句型06-20

            HTML表單標記簡單教程08-16

            JavaScript基本語法分析10-16

            雅思的基本語法概念—詞性10-16

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看