Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package org.apache.strutsel.taglib.bean

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.

See:
Description

Class Summary
ELIncludeTag | Generate a URL-encoded include to the specified URI.
ELIncludeTagBeanInfo | This is the `BeanInfo` descriptor for the `org.apache.strutsel.taglib.bean.ELIncludeTag` class.
ELMessageTag | Custom tag that retrieves an internationalized messages string (with optional parametric replacement) from the `ActionResources` object stored as a context attribute by our associated `ActionServlet` implementation.
ELMessageTagBeanInfo | This is the `BeanInfo` descriptor for the `org.apache.strutsel.taglib.bean.ELMessageTag` class.
ELPageTag | Define a scripting variable that exposes the requested page context item as a scripting variable and a page scope bean.
ELPageTagBeanInfo | This is the `BeanInfo` descriptor for the `org.apache.strutsel.taglib.bean.ELPageTag` class.
ELResourceTag | Define a scripting variable based on the contents of the specified web application resource.
ELResourceTagBeanInfo | This is the `BeanInfo` descriptor for the `org.apache.strutsel.taglib.bean.ELResourceTag` class.
ELSizeTag | Define a scripting variable that will contain the number of elements found in a specified array, Collection, or Map.
ELSizeTagBeanInfo | This is the `BeanInfo` descriptor for the `org.apache.strutsel.taglib.bean.ELSizeTag` class.
ELStrutsTag | Define a scripting variable that exposes the requested Struts internal configuraton object.
ELStrutsTagBeanInfo | This is the `BeanInfo` descriptor for the `org.apache.strutsel.taglib.bean.ELStrutsTag` class.

## Package org.apache.strutsel.taglib.bean Description

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] [Bean-EL Functionality] [Bean-EL Examples]

### 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}" />

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.