The "struts-html-el" tag library contains JSP custom tags useful in creating dynamic HTML user interfaces, including input forms.


[Introduction] [Html-EL Functionality] [Html-EL Examples]

Introduction

The functionality of this tag library is entirely provided by the base "struts-html" tag library in the Struts distribution. This derived tag library, "struts-html-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.

Html-EL Functionality

The functionality of the "html-el" tags can be almost entirely understood from the documentation of the "struts-html" base tag library.

Html-EL Examples

The following are discrete examples of uses of the "html-el" tags, in no paticular order, but emphasizing the use of JSTL EL values as attribute values.

Example:

    <html-el:button onblur="handler('${arg}')"
    styleClass='${styleClass["button"]'
    titleKey='${titleKey["button"]}'
    value='${buttonValue["button"]}' />

Example:

    <html-el:checkbox property="button" value="${flagValue}"/>

Example:

    <html-el:link page="/doit.do" accesskey='${linkkey["doit"]}' >
    A link
    </html-el:link>

Example:

    <html-el:link page="/doit.do"
    onclick="openModal('/editSalary.do?id=${employee.id}')" >
    A link
    </html-el:link>