public long getLong(String name)
    {
        long val = 0;
        try {
            val = Long.valueOf(request.getParameter(name));
        } catch (NumberFormatException e) {}
        
        return val;
    }
public long getLong ( String name ) { long val = 0 ; try { val = Long . valueOf ( request . getParameter ( name ) ) ; } catch ( NumberFormatException e ) { } return val ; }
get a long argument

@param   name
@return  long