//Key[] keys = attrs.keys();
Iterator<Entry<Key, Object>> it;
Entry<Key, Object> e;
if(TagLibTag.ATTRIBUTE_TYPE_DYNAMIC==attrType) {
DynamicAttributes da=(DynamicAttributes) tag;
it = attrs.entryIterator();
while(it.hasNext()) {
e = it.next();
da.setDynamicAttribute(null, e.getKey(),e.getValue());
}
}
else if(TagLibTag.ATTRIBUTE_TYPE_FIXED==attrType) {
Object value;
it = attrs.entryIterator();
while(it.hasNext()) {
e = it.next();
value=e.getValue();
if(value!=null)Reflector.callSetterEL(tag, e.getKey().getString(),value);
//}catch(PageException pe){}
}
}
else if(TagLibTag.ATTRIBUTE_TYPE_MIXED==attrType) {
MethodInstance setter;
it = attrs.entryIterator();
while(it.hasNext()) {
e = it.next();
setter = Reflector.getSetter(tag, e.getKey().getString(),e.getValue(),null);
if(setter!=null) {
try {
setter.invoke(tag);
}
catch (Exception _e) {
throw Caster.toPageException(_e);
}
}
else {
DynamicAttributes da=(DynamicAttributes) tag;
da.setDynamicAttribute(null, e.getKey(),e.getValue());
}
}
}
}