標簽名 attribute Tag Body empty 作用 得到application中某個屬性的值 使用示例 示例說明 輸出application中名為test1的屬性的值。
標簽名 attributes Tag Body JSP 作用 遍歷application中所有的屬性或得到特定屬性的值 使用示例 Name: Value: 示例說明 輸出application中所有屬性的名稱和值。 使用示例 Name: Value: 示例說明 輸出application中屬性myatt的名稱和值。
標簽名 equalsAttribute Tag Body JSP 作用 判定application中屬性的值是否與指定值相等。 使用示例 The application attribute with name test1 matches the string "blah". The application attribute with name test1 does not match the string "blah". 示例說明 判定application中屬性test1的值是否為blah。
標簽名 existsAttribute Tag Body JSP 作用 判定application中是否存在指定名稱的屬性。 使用示例 The application attribute with name test1 exists. The application attribute with name test1 does not exist. 示例說明 判定application中是否有名為test1的屬性。
標簽名 removeAttribute Tag Body empty 作用 從application中刪除指定名稱的屬性。 使用示例 示例說明 刪除application中名為test1的屬性。
標簽名 setAttribute Tag Body JSP 作用 設定application中指定屬性的值。 使用示例 Test Value 示例說明 設定application中test1的屬性值為Test Value。
1.2.2 Application初始化參數標簽
標簽名 initParameter Tag Body empty 作用 得到application中指定參數的值。 使用示例 示例說明 得到application中參數test1的值。
標簽名 initParameters Tag Body JSP 作用 遍歷application中所有初始化參數或得到特定參數的值。 使用示例 Name: Value: 示例說明 輸出application中所有初始化參數的名稱和值。 使用示例 Name: Value: 示例說明 得到application中參數test1的值。
標簽名 equalsInitParameter Tag Body JSP 作用 判定application中某參數的值是否與指定值相同。 使用示例 The initialization parameter with name test1 matches "blah". The initialization parameter with name test1 does not match "blah". 示例說明 判定application中參數test1的值是否為blah。
標簽名 existsInitParameter Tag Body JSP 作用 判定application中是否存在指定名稱的參數。 使用示例 The initializaion parameter with name test1 exists. The initialization parameter with name test1 does not exist. 示例說明 判定application中是否存在參數test1。