The APPLICATION custom tag library contains tags which can be used to access all the information about the ApplicationContext for a JSP application.
Tags are provided to access information in "application" scoped attributes.
This custom tag library requires no software other than a servlet container that supports the JavaServer Applications Specification, version 1.2.
The tag library also works in some JSP version 1.1 servlet containers, such as Tomcat, but not in others, such as Weblogic. The tags in this tag library are designed according to the JSP 1.2 specification, which makes this requirement of the <jsp:getProperty ... /> tag:
The JSP 1.1 specification does not require this behaviour, and while Tomcat happens to support it, Weblogic does not. Note that it is fairly straightforward to write a custom tag that emulates this behaviour for Weblogic users. Sample source code for such a tag can be found here.
]]>
Name:
Value:
]]>
The application attribute with name test1 matches the string "blah".
The application attribute with name test1 does not match the string "blah".
]]>
The application attribute with name test1 exists.
The application attribute with name test1 does not exist.
]]>
]]>
Test Value
]]>
]]>
Name:
Value:
]]>
Name:
Value:
]]>
The initialization parameter with name test1 matches "blah".
The initialization parameter with name test1 does not match "blah".
]]>
The initializaion parameter with name test1 exists.
The initialization parameter with name test1 does not exist.
]]>