/
documentation-topic-00112.xml
83 lines (82 loc) · 5.62 KB
/
documentation-topic-00112.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<AlkaconDocumentationTopicFrames xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="opencms://system/modules/com.alkacon.opencms.documentation/schemas/documentation-topic.xsd">
<AlkaconDocumentationTopicFrame language="en">
<Overview name="Overview0">
<links>
<link name="link0" internal="true" type="A">
<target><![CDATA[/sites/default/opencms-documentation/typical-tasks/writing-jsps/the-opencms-taglib-cms/]]></target>
<uuid>8a0dd6e2-579e-11e5-ac6d-0242ac11002b</uuid>
</link>
<link name="link1" internal="false" type="A">
<target><![CDATA[http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html]]></target>
</link>
<link name="link2" internal="false" type="A">
<target><![CDATA[http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html]]></target>
</link>
<link name="link3" internal="true" type="A">
<target><![CDATA[/sites/default/opencms-documentation/typical-tasks/writing-jsps/overview-java-beans-for-el/]]></target>
<uuid>b4420486-57c4-11e5-ac6d-0242ac11002b</uuid>
</link>
</links>
<content><![CDATA[<p>OpenCms comes with several Java beans to provide access to OpenCms-specific functionality in JSPs. In general, if required, an object of each bean could be made available separately in a JSP. Also several tags of the <a href="%(link0)"><code><cms:></code>-taglib</a> initialize and expose objects of such beans.</p>
<p>Since OpenCms 9.0.1 the variable <code>cms</code> is present in the page scope for each JSP. It makes an object of type <a href="%(link1)"><code>org.opencms.jsp.util.CmsJspStandardContextBean</code></a> available. The object provides a convenient way to access the most important OpenCms functions via JSTL/EL. Thus, in most cases no bean at all has to be included and initialized manually, and also formerly required use of scriptlet code becomes obsolete.</p>
<p>The standard context bean has a very rich interface. In particular, access to several other Java beans shipped with OpenCms is granted. A complete overview of the functionality exposed via the standard context bean can be looked up in the JavaDoc. Look up the documentation of the class <a href="%(link2)"><code>CmsJspStandardContextBean</code></a>. Starting there, you can easily explore the interfaces of all other beans accessible via the standard context bean as well. If you are aware of the naming conventions for Java Beans, you can obtain an overview of the properties available in EL.</p>
<p>Another starting point to get an overview is <a href="%(link3)">this documentation page</a>, only listing interesting beans and how to obtain an object of that bean.</p>
<p>Here, we describe only the most important Java beans shipped with OpenCms. We do not aim for completeness when describing the properties of the beans. We also do not cover all beans. In particular, we exclude beans for content access, since they are handled when formatters are explained.</p>]]></content>
</Overview>
<Teaser name="Teaser0">
<links/>
<content><![CDATA[<p>Get an overview on commonly used EL expressions.</p>]]></content>
</Teaser>
<Keywords><![CDATA[OpenCms, EL, expression language, interesting expressions, Java beans]]></Keywords>
<InterestingFor><![CDATA[b_opencmsAdmin,c_developer]]></InterestingFor>
<RelatedLinks>
<Link>
<URI>
<link internal="true" type="WEAK">
<target><![CDATA[/sites/default/opencms-documentation/typical-tasks/writing-jsps/]]></target>
<uuid>62f3bf30-0bf2-11e4-a03c-b7bfd6088c56</uuid>
</link>
</URI>
<LinkText><![CDATA[Overview on OpenCms' JSP support]]></LinkText>
<LinkDescription name="LinkDescription0">
<links/>
<content><![CDATA[<p>Get an overview on JSPs in OpenCms and get directed to the OpenCms API you can use in JSPs.</p>]]></content>
</LinkDescription>
</Link>
<Link>
<URI>
<link internal="true" type="WEAK">
<target><![CDATA[/sites/default/opencms-documentation/typical-tasks/writing-jsps/overview-java-beans-for-el/]]></target>
<uuid>b4420486-57c4-11e5-ac6d-0242ac11002b</uuid>
</link>
</URI>
<LinkText><![CDATA[Overview on Java beans for EL]]></LinkText>
<LinkDescription name="LinkDescription0">
<links/>
<content><![CDATA[<p>While here, you get some basic examples and interesting properties of interesting Java beans, the linked page provides a listing interesting Java beans.</p>]]></content>
</LinkDescription>
</Link>
<Link>
<URI>
<link internal="true" type="WEAK">
<target><![CDATA[/sites/default/opencms-documentation/typical-tasks/writing-jsps/the-opencms-taglib-cms/]]></target>
<uuid>8a0dd6e2-579e-11e5-ac6d-0242ac11002b</uuid>
</link>
</URI>
<LinkText><![CDATA[The OpenCms taglib (<cms:>)]]></LinkText>
<LinkDescription name="LinkDescription0">
<links/>
<content><![CDATA[<p>Learn about the taglib provided with OpenCms.</p>]]></content>
</LinkDescription>
</Link>
</RelatedLinks>
<NewInDocuVersion><![CDATA[9.5.2]]></NewInDocuVersion>
<RevisedForVersion><![CDATA[9.5.2]]></RevisedForVersion>
<StatusMetaData>
<Todos>
<Todo><![CDATA[Shorten and restructure]]></Todo>
</Todos>
</StatusMetaData>
</AlkaconDocumentationTopicFrame>
</AlkaconDocumentationTopicFrames>