_fields.put( FUNCTION_GETURLPARAMETERBYINDEX, createGetURLParameterByIndexFunction() );
}
private ScriptableFunctionBase createGetURLParameterFunction() {
return new ScriptableFunctionBase() {
protected Object execute( Object thiz, Object[] args ) throws Exception {
String key = ( args[ 0 ] ).toString();
return ( _parameters == null || _parameters.get( key ) == null ) ? UNDEFINED : _parameters.get( key );