The "struts-bean-el" tag library contains JSP custom tags useful in defining
new beans (in any desired scope) from a variety of possible sources, as well
as a tag to render a particular bean (or bean property) to the output
response.
The functionality of this tag library is entirely provided by the base
"struts-bean" tag library in the Struts distribution. This derived tag
library, "struts-bean-el", only provides a different way to evaluate
attribute values, which is using the JavaServer Pages Standard Tag Library
expression language engine, or the "JSTL EL" for short.
In general, the tags provided in the "struts-bean-el" library are a direct
mapping from the "struts-bean" tag library. However, there are several
tags in the base Struts tag library which were not "ported" to the
"struts-bean-el" tag library, as it was determined that all of their
functionality was provided by the JSTL. Information about these
"non-ported" tags is provided in the information for the
"org.apache.strutsel" package.
Bean-EL Functionality
The functionality of the "bean-el" tags can be almost entirely understood
from the documentation of the "struts-bean" base tag library.
Bean-EL Examples
The following are discrete examples of uses of the "bean-el" tags, in no
paticular order, but emphasizing the use of JSTL EL values as attribute
values.
The "struts-bean-el" tag library contains JSP custom tags useful in defining new beans (in any desired scope) from a variety of possible sources, as well as a tag to render a particular bean (or bean property) to the output response.
Introduction
The functionality of this tag library is entirely provided by the base "struts-bean" tag library in the Struts distribution. This derived tag library, "struts-bean-el", only provides a different way to evaluate attribute values, which is using the JavaServer Pages Standard Tag Library expression language engine, or the "JSTL EL" for short.
In general, the tags provided in the "struts-bean-el" library are a direct mapping from the "struts-bean" tag library. However, there are several tags in the base Struts tag library which were not "ported" to the "struts-bean-el" tag library, as it was determined that all of their functionality was provided by the JSTL. Information about these "non-ported" tags is provided in the information for the "org.apache.strutsel" package.
Bean-EL Functionality
The functionality of the "bean-el" tags can be almost entirely understood from the documentation of the "struts-bean" base tag library.
Bean-EL Examples
The following are discrete examples of uses of the "bean-el" tags, in no paticular order, but emphasizing the use of JSTL EL values as attribute values.
Example:
<bean-el:message key="${messKey}" arg0="${arg}"/>Example:
<bean-el:resource id="var" name="${filename}" />Example:
<%-- Size of pagescope hash table --%> <bean-el:size id="pageScopeSize" collection="${pageScope}" />Example:
<bean-el:struts id="mapping" mapping="${actionName}" />