Code example for JSONException

Methods: toString

0
                ca.listFactoryConfigurations( json, pidFilter, locale );
            } 
        } 
        catch (JSONException e)
        { 
            throw new IOException(e.toString());
        } 
 
        // if a configuration is addressed, display it immediately 
        if ( request.getParameter( ACTION_CREATE ) != null && pid != null ) //$NON-NLS-1$
        { 
            pid = PLACEHOLDER_PID; // new PlaceholderConfiguration( pid ).getPid();
        } 
 
 
        // prepare variables 
        DefaultVariableResolver vars = ( ( DefaultVariableResolver ) WebConsoleUtil.getVariableResolver( request ) );
        vars.put( "__data__", json.toString() ); //$NON-NLS-1$
        vars.put( "selectedPid", pid != null ? pid : ""); //$NON-NLS-1$ //$NON-NLS-2$
        vars.put( "param.apply", ACTION_APPLY ); //$NON-NLS-1$
Experience pair programming with AI  Get Codota for Java