dmkarr 2003/02/18 19:45:25 Added: contrib/struts-el/src/share/org/apache/strutsel/taglib/bean ELMessageTagBeanInfo.java ELPageTagBeanInfo.java ELResourceTagBeanInfo.java ELStrutsTagBeanInfo.java contrib/struts-el/src/share/org/apache/strutsel/taglib/html ELBaseTagBeanInfo.java ELErrorsTagBeanInfo.java ELFormTagBeanInfo.java ELImgTagBeanInfo.java ELMessagesTagBeanInfo.java contrib/struts-el/src/share/org/apache/strutsel/taglib/logic ELForwardTagBeanInfo.java ELMatchTagBeanInfo.java ELMessagesNotPresentTagBeanInfo.java ELMessagesPresentTagBeanInfo.java ELNotMatchTagBeanInfo.java ELNotPresentTagBeanInfo.java ELPresentTagBeanInfo.java Log: Adding new BeanInfo classes for Tag classes which previously did not have one. Each tag class has one now, as all attribute setters now have a "shadow" attribute, to deal with the fact that the setter may not get called again on a reused tag handler. PR: 16749 Revision Changes Path 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELMessageTagBeanInfo.java Index: ELMessageTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELMessageTagBeanInfo.java,v 1.1 2003/02/19 03:45:24 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:24 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.bean; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.bean.ELMessageTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELMessageTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[11]; try { result[0] = new PropertyDescriptor("arg0", ELMessageTag.class, null, "setArg0Expr"); result[1] = new PropertyDescriptor("arg1", ELMessageTag.class, null, "setArg1Expr"); result[2] = new PropertyDescriptor("arg2", ELMessageTag.class, null, "setArg2Expr"); result[3] = new PropertyDescriptor("arg3", ELMessageTag.class, null, "setArg3Expr"); result[4] = new PropertyDescriptor("arg4", ELMessageTag.class, null, "setArg4Expr"); result[5] = new PropertyDescriptor("bundle", ELMessageTag.class, null, "setBundleExpr"); result[6] = new PropertyDescriptor("key", ELMessageTag.class, null, "setKeyExpr"); result[7] = new PropertyDescriptor("locale", ELMessageTag.class, null, "setLocaleExpr"); result[8] = new PropertyDescriptor("name", ELMessageTag.class, null, "setNameExpr"); result[9] = new PropertyDescriptor("property", ELMessageTag.class, null, "setPropertyExpr"); result[10] = new PropertyDescriptor("scope", ELMessageTag.class, null, "setScopeExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELPageTagBeanInfo.java Index: ELPageTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELPageTagBeanInfo.java,v 1.1 2003/02/19 03:45:24 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:24 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.bean; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.bean.ELPageTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELPageTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[2]; try { result[0] = new PropertyDescriptor("id", ELPageTag.class, null, "setIdExpr"); result[1] = new PropertyDescriptor("property", ELPageTag.class, null, "setPropertyExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELResourceTagBeanInfo.java Index: ELResourceTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELResourceTagBeanInfo.java,v 1.1 2003/02/19 03:45:24 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:24 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.bean; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.bean.ELResourceTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELResourceTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[3]; try { result[0] = new PropertyDescriptor("id", ELResourceTag.class, null, "setIdExpr"); result[1] = new PropertyDescriptor("input", ELResourceTag.class, null, "setInputExpr"); result[2] = new PropertyDescriptor("name", ELResourceTag.class, null, "setNameExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELStrutsTagBeanInfo.java Index: ELStrutsTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELStrutsTagBeanInfo.java,v 1.1 2003/02/19 03:45:24 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:24 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.bean; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.bean.ELStrutsTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELStrutsTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[4]; try { result[0] = new PropertyDescriptor("id", ELStrutsTag.class, null, "setIdExpr"); result[1] = new PropertyDescriptor("formBean", ELStrutsTag.class, null, "setFormBeanExpr"); result[2] = new PropertyDescriptor("forward", ELStrutsTag.class, null, "setForwardExpr"); result[3] = new PropertyDescriptor("mapping", ELStrutsTag.class, null, "setMappingExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELBaseTagBeanInfo.java Index: ELBaseTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELBaseTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.html; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.html.ELBaseTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELBaseTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[2]; try { result[0] = new PropertyDescriptor("target", ELBaseTag.class, null, "setTargetExpr"); result[1] = new PropertyDescriptor("server", ELBaseTag.class, null, "setServerExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELErrorsTagBeanInfo.java Index: ELErrorsTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELErrorsTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.html; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.html.ELErrorsTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELErrorsTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[4]; try { result[0] = new PropertyDescriptor("bundle", ELErrorsTag.class, null, "setBundleExpr"); result[1] = new PropertyDescriptor("locale", ELErrorsTag.class, null, "setLocaleExpr"); result[2] = new PropertyDescriptor("name", ELErrorsTag.class, null, "setNameExpr"); result[3] = new PropertyDescriptor("property", ELErrorsTag.class, null, "setPropertyExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTagBeanInfo.java Index: ELFormTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.html; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.html.ELFormTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELFormTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[14]; try { result[0] = new PropertyDescriptor("action", ELFormTag.class, null, "setActionExpr"); result[1] = new PropertyDescriptor("enctype", ELFormTag.class, null, "setEnctypeExpr"); result[2] = new PropertyDescriptor("focus", ELFormTag.class, null, "setFocusExpr"); result[3] = new PropertyDescriptor("focusIndex", ELFormTag.class, null, "setFocusIndexExpr"); result[4] = new PropertyDescriptor("method", ELFormTag.class, null, "setMethodExpr"); result[5] = new PropertyDescriptor("name", ELFormTag.class, null, "setNameExpr"); result[6] = new PropertyDescriptor("onreset", ELFormTag.class, null, "setOnresetExpr"); result[7] = new PropertyDescriptor("onsubmit", ELFormTag.class, null, "setOnsubmitExpr"); result[8] = new PropertyDescriptor("scope", ELFormTag.class, null, "setScopeExpr"); result[9] = new PropertyDescriptor("style", ELFormTag.class, null, "setStyleExpr"); result[10] = new PropertyDescriptor("styleClass", ELFormTag.class, null, "setStyleClassExpr"); result[11] = new PropertyDescriptor("styleId", ELFormTag.class, null, "setStyleIdExpr"); result[12] = new PropertyDescriptor("target", ELFormTag.class, null, "setTargetExpr"); result[13] = new PropertyDescriptor("type", ELFormTag.class, null, "setTypeExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTagBeanInfo.java Index: ELImgTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.html; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.html.ELImgTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELImgTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[41]; try { result[0] = new PropertyDescriptor("accesskey", ELImgTag.class, null, "setAccesskeyExpr"); result[1] = new PropertyDescriptor("align", ELImgTag.class, null, "setAlignExpr"); result[2] = new PropertyDescriptor("alt", ELImgTag.class, null, "setAltExpr"); result[3] = new PropertyDescriptor("altKey", ELImgTag.class, null, "setAltKeyExpr"); result[4] = new PropertyDescriptor("border", ELImgTag.class, null, "setBorderExpr"); result[5] = new PropertyDescriptor("bundle", ELImgTag.class, null, "setBundleExpr"); result[6] = new PropertyDescriptor("height", ELImgTag.class, null, "setHeightExpr"); result[7] = new PropertyDescriptor("hspace", ELImgTag.class, null, "setHspaceExpr"); result[8] = new PropertyDescriptor("imageName", ELImgTag.class, null, "setImageNameExpr"); result[9] = new PropertyDescriptor("ismap", ELImgTag.class, null, "setIsmapExpr"); result[10] = new PropertyDescriptor("locale", ELImgTag.class, null, "setLocaleExpr"); result[11] = new PropertyDescriptor("lowsrc", ELImgTag.class, null, "setLowsrcExpr"); result[12] = new PropertyDescriptor("name", ELImgTag.class, null, "setNameExpr"); result[13] = new PropertyDescriptor("onclick", ELImgTag.class, null, "setOnclickExpr"); result[14] = new PropertyDescriptor("ondblclick", ELImgTag.class, null, "setOndblclickExpr"); result[15] = new PropertyDescriptor("onkeydown", ELImgTag.class, null, "setOnkeydownExpr"); result[16] = new PropertyDescriptor("keypress", ELImgTag.class, null, "setOnkeypressExpr"); result[17] = new PropertyDescriptor("onkeyup", ELImgTag.class, null, "setOnkeyupExpr"); result[18] = new PropertyDescriptor("onmousedown", ELImgTag.class, null, "setOnmousedownExpr"); result[19] = new PropertyDescriptor("onmousemove", ELImgTag.class, null, "setOnmousemoveExpr"); result[20] = new PropertyDescriptor("onmouseout", ELImgTag.class, null, "setOnmouseoutExpr"); result[21] = new PropertyDescriptor("onmouseover", ELImgTag.class, null, "setOnmouseoverExpr"); result[22] = new PropertyDescriptor("onmouseup", ELImgTag.class, null, "setOnmouseupExpr"); result[23] = new PropertyDescriptor("page", ELImgTag.class, null, "setPageExpr"); result[24] = new PropertyDescriptor("pageKey", ELImgTag.class, null, "setPageKeyExpr"); result[25] = new PropertyDescriptor("paramId", ELImgTag.class, null, "setParamIdExpr"); result[26] = new PropertyDescriptor("paramName", ELImgTag.class, null, "setParamNameExpr"); result[27] = new PropertyDescriptor("paramProperty", ELImgTag.class, null, "setParamPropertyExpr"); result[28] = new PropertyDescriptor("paramScope", ELImgTag.class, null, "setParamScopeExpr"); result[29] = new PropertyDescriptor("property", ELImgTag.class, null, "setPropertyExpr"); result[30] = new PropertyDescriptor("scope", ELImgTag.class, null, "setScopeExpr"); result[31] = new PropertyDescriptor("src", ELImgTag.class, null, "setSrcExpr"); result[32] = new PropertyDescriptor("srcKey", ELImgTag.class, null, "setSrcKeyExpr"); result[33] = new PropertyDescriptor("style", ELImgTag.class, null, "setStyleExpr"); result[34] = new PropertyDescriptor("styleClass", ELImgTag.class, null, "setStyleClassExpr"); result[35] = new PropertyDescriptor("styleId", ELImgTag.class, null, "setStyleIdExpr"); result[36] = new PropertyDescriptor("title", ELImgTag.class, null, "setTitleExpr"); result[37] = new PropertyDescriptor("titleKey", ELImgTag.class, null, "setTitleKeyExpr"); result[38] = new PropertyDescriptor("usemap", ELImgTag.class, null, "setUsemapExpr"); result[39] = new PropertyDescriptor("vspace", ELImgTag.class, null, "setVspaceExpr"); result[40] = new PropertyDescriptor("width", ELImgTag.class, null, "setWidthExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java Index: ELMessagesTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMessagesTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.html; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.html.ELMessagesTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. */ public class ELMessagesTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[8]; try { result[0] = new PropertyDescriptor("id", ELMessagesTag.class, null, "setIdExpr"); result[1] = new PropertyDescriptor("bundle", ELMessagesTag.class, null, "setBundleExpr"); result[2] = new PropertyDescriptor("locale", ELMessagesTag.class, null, "setLocaleExpr"); result[3] = new PropertyDescriptor("name", ELMessagesTag.class, null, "setNameExpr"); result[4] = new PropertyDescriptor("property", ELMessagesTag.class, null, "setPropertyExpr"); result[5] = new PropertyDescriptor("header", ELMessagesTag.class, null, "setHeaderExpr"); result[6] = new PropertyDescriptor("footer", ELMessagesTag.class, null, "setFooterExpr"); result[7] = new PropertyDescriptor("message", ELMessagesTag.class, null, "setMessageExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELForwardTagBeanInfo.java Index: ELForwardTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELForwardTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELForwardTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELForwardTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELForwardTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[1]; try { result[0] = new PropertyDescriptor("name", ELForwardTag.class, null, "setNameExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMatchTagBeanInfo.java Index: ELMatchTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMatchTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELMatchTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELMatchTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELMatchTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[9]; try { result[0] = new PropertyDescriptor("cookie", ELMatchTag.class, null, "setCookieExpr"); result[1] = new PropertyDescriptor("header", ELMatchTag.class, null, "setHeaderExpr"); result[2] = new PropertyDescriptor("location", ELMatchTag.class, null, "setLocationExpr"); result[3] = new PropertyDescriptor("name", ELMatchTag.class, null, "setNameExpr"); result[4] = new PropertyDescriptor("parameter", ELMatchTag.class, null, "setParameterExpr"); result[5] = new PropertyDescriptor("property", ELMatchTag.class, null, "setPropertyExpr"); result[6] = new PropertyDescriptor("scope", ELMatchTag.class, null, "setScopeExpr"); result[7] = new PropertyDescriptor("value", ELMatchTag.class, null, "setValueExpr"); result[8] = new PropertyDescriptor("expr", ELMatchTag.class, null, "setExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMessagesNotPresentTagBeanInfo.java Index: ELMessagesNotPresentTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMessagesNotPresentTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELMessagesNotPresentTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELMessagesNotPresentTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELMessagesNotPresentTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[3]; try { result[0] = new PropertyDescriptor("name", ELMessagesNotPresentTag.class, null, "setNameExpr"); result[1] = new PropertyDescriptor("property", ELMessagesNotPresentTag.class, null, "setPropertyExpr"); result[2] = new PropertyDescriptor("message", ELMessagesNotPresentTag.class, null, "setMessageExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMessagesPresentTagBeanInfo.java Index: ELMessagesPresentTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMessagesPresentTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELMessagesPresentTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELMessagesPresentTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELMessagesPresentTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[3]; try { result[0] = new PropertyDescriptor("name", ELMessagesPresentTag.class, null, "setNameExpr"); result[1] = new PropertyDescriptor("property", ELMessagesPresentTag.class, null, "setPropertyExpr"); result[2] = new PropertyDescriptor("message", ELMessagesPresentTag.class, null, "setMessageExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotMatchTagBeanInfo.java Index: ELNotMatchTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotMatchTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELNotMatchTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELNotMatchTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELNotMatchTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[9]; try { result[0] = new PropertyDescriptor("cookie", ELNotMatchTag.class, null, "setCookieExpr"); result[1] = new PropertyDescriptor("header", ELNotMatchTag.class, null, "setHeaderExpr"); result[2] = new PropertyDescriptor("location", ELNotMatchTag.class, null, "setLocationExpr"); result[3] = new PropertyDescriptor("name", ELNotMatchTag.class, null, "setNameExpr"); result[4] = new PropertyDescriptor("parameter", ELNotMatchTag.class, null, "setParameterExpr"); result[5] = new PropertyDescriptor("property", ELNotMatchTag.class, null, "setPropertyExpr"); result[6] = new PropertyDescriptor("scope", ELNotMatchTag.class, null, "setScopeExpr"); result[7] = new PropertyDescriptor("value", ELNotMatchTag.class, null, "setValueExpr"); result[8] = new PropertyDescriptor("expr", ELNotMatchTag.class, null, "setExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotPresentTagBeanInfo.java Index: ELNotPresentTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotPresentTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELNotPresentTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELNotPresentTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELNotPresentTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[8]; try { result[0] = new PropertyDescriptor("cookie", ELNotPresentTag.class, null, "setCookieExpr"); result[1] = new PropertyDescriptor("header", ELNotPresentTag.class, null, "setHeaderExpr"); result[2] = new PropertyDescriptor("name", ELNotPresentTag.class, null, "setNameExpr"); result[3] = new PropertyDescriptor("parameter", ELNotPresentTag.class, null, "setParameterExpr"); result[4] = new PropertyDescriptor("property", ELNotPresentTag.class, null, "setPropertyExpr"); result[5] = new PropertyDescriptor("role", ELNotPresentTag.class, null, "setRoleExpr"); result[6] = new PropertyDescriptor("scope", ELNotPresentTag.class, null, "setScopeExpr"); result[7] = new PropertyDescriptor("user", ELNotPresentTag.class, null, "setUserExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } } 1.1 jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELPresentTagBeanInfo.java Index: ELPresentTagBeanInfo.java =================================================================== /* * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELPresentTagBeanInfo.java,v 1.1 2003/02/19 03:45:25 dmkarr Exp $ * $Revision: 1.1 $ * $Date: 2003/02/19 03:45:25 $ * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowledgement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Struts", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.strutsel.taglib.logic; import java.beans.PropertyDescriptor; import java.beans.IntrospectionException; import java.beans.SimpleBeanInfo; import java.lang.reflect.Method; /** * This is the <code>BeanInfo</code> descriptor for the * <code>org.apache.strutsel.taglib.logic.ELPresentTag</code> class. It is * needed to override the default mapping of custom tag attribute names to * class attribute names. *<p> * In particular, it provides for the mapping of the custom tag attribute * <code>collection</code> to the class attribute <code>collectionExpr</code>. *<p> * This is necessary because the base class, * <code>org.apache.struts.taglib.logic.IterateTag</code> already defines a * <code>collection</code> attribute of type <code>java.lang.Object</code>. * The <code>org.apache.strutsel.taglib.logic.ELPresentTag</code> subclass cannot * use this attribute because the custom tag attribute <code>collection</code> * has to be of type <code>java.lang.String</code> in order to be evaluated by * the JSTL EL engine. */ public class ELPresentTagBeanInfo extends SimpleBeanInfo { public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[8]; try { result[0] = new PropertyDescriptor("cookie", ELPresentTag.class, null, "setCookieExpr"); result[1] = new PropertyDescriptor("header", ELPresentTag.class, null, "setHeaderExpr"); result[2] = new PropertyDescriptor("name", ELPresentTag.class, null, "setNameExpr"); result[3] = new PropertyDescriptor("parameter", ELPresentTag.class, null, "setParameterExpr"); result[4] = new PropertyDescriptor("property", ELPresentTag.class, null, "setPropertyExpr"); result[5] = new PropertyDescriptor("role", ELPresentTag.class, null, "setRoleExpr"); result[6] = new PropertyDescriptor("scope", ELPresentTag.class, null, "setScopeExpr"); result[7] = new PropertyDescriptor("user", ELPresentTag.class, null, "setUserExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]