public void doTag(XMLOutput output) throws JellyTagException { Map attributes = getAttributes(); String var = (String) attributes.get( "var" ); Object classObject = attributes.get( "class" ); addIgnoreProperty("class"); addIgnoreProperty("var"); try { // this method could return null in derived classes Class theClass = convertToClass(classObject); bean = newInstance(theClass, attributes, output); setBeanProperties(bean, attributes); // invoke body which could result in other properties being set invokeBody(output); processBean(var, bean); } catch (ClassNotFoundException e) { throw new JellyTagException(e); } }
public void doTag(XMLOutput output) throws JellyTagException { Map attributes = getAttributes(); String var = (String) attributes.get( "var" ); Object classObject = attributes.get( "class" ); addIgnoreProperty("class"); addIgnoreProperty("var"); try { // this method could return null in derived classes Class theClass = convertToClass(classObject); bean = newInstance(theClass, attributes, output); setBeanProperties(bean, attributes); // invoke body which could result in other properties being set invokeBody(output); processBean(var, bean); } catch (ClassNotFoundException e) { throw new JellyTagException(e); } }
public void doTag(XMLOutput output) throws JellyTagException { Map attributes = getAttributes(); String var = (String) attributes.get( "var" ); Object classObject = attributes.get( "class" ); addIgnoreProperty("class"); addIgnoreProperty("var"); try { // this method could return null in derived classes Class theClass = convertToClass(classObject); bean = newInstance(theClass, attributes, output); setBeanProperties(bean, attributes); // invoke body which could result in other properties being set invokeBody(output); processBean(var, bean); } catch (ClassNotFoundException e) { throw new JellyTagException(e); } }
public void doTag(XMLOutput output) throws JellyTagException { Map attributes = getAttributes(); String var = (String) attributes.get( "var" ); Object classObject = attributes.get( "class" ); addIgnoreProperty("class"); addIgnoreProperty("var"); try { // this method could return null in derived classes Class theClass = convertToClass(classObject); bean = newInstance(theClass, attributes, output); setBeanProperties(bean, attributes); // invoke body which could result in other properties being set invokeBody(output); processBean(var, bean); } catch (ClassNotFoundException e) { throw new JellyTagException(e); } }