mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
URL argument support for the Template and Script servlets
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,8 +40,15 @@ public class ScriptableHashMap<K,V> extends HashMap implements Scriptable
|
|||||||
*/
|
*/
|
||||||
public Object get(String name, Scriptable start)
|
public Object get(String name, Scriptable start)
|
||||||
{
|
{
|
||||||
// get the property from the underlying map
|
// get the property from the underlying QName map
|
||||||
return get(name);
|
if ("length".equals(name))
|
||||||
|
{
|
||||||
|
return this.size();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return get(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user