component


Standard Syntax:
     <%@ taglib prefix="component" uri="convirgance:component" %>

XML Syntax:
     <anyxmlelement xmlns:component="convirgance:component" />

Provides a componentization library for JSP pages. While the <jsp:include> tag is capable of taking parameters, those parameters are limited to string values. This library allows parameters of any type to be passed using EL expressions in the value.

Importantly, arguments can then be accessed using the ${args} object rather than overriding the contents of the ${params} object.
This allows for sophisticated and reusable server-side components to be constructed quickly and easily.

Tag Library Information
Display NameNone
Version2.0
Short Namecomponent
URIconvirgance:component
 

Tag Summary
arg Pass an argument to the component

Example:

    <component:include page="/WEB-INF/components/header.jsp">
        <component:arg name="current_page" value="Home" />
        <component:arg name="user_info" value="${user_info}" />
    </component:include>
    
include Include a component page. The path to the page can include EL expressions allowing for dynamic includes.

Example:

    <component:include page="/WEB-INF/components/header_${site_section}.jsp" />
    
 


Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.