public long getLongReqPar ( final String name , final long defaultVal ) throws Throwable { String reqpar = getReqPar ( name ) ; if ( reqpar == null ) { return defaultVal ; } try { return Long . parseLong ( reqpar ) ; } catch ( Throwable t ) { return defaultVal ; // XXX exception? } }
Get an long valued request parameter .