Hello all,
I was wondering if there a method/function etc that is simular to
Oracle's Nvl function. The funtion checks a parameter and if it is
null then is will output a given alternative. i.e. nvl(parameter1,
value1) if parameter1 is null then send value1.
I have a servlet with the following snippet of code that I'd like to
streamline as this is one of many checks to be made...ideas?
if(request.getP arameter("idcol ")!= null)
{
int idcol = Integer.parseIn t(request.getPa rameter("idcol" ).trim());
}else{
int idcol = 0;
}
I was wondering if there a method/function etc that is simular to
Oracle's Nvl function. The funtion checks a parameter and if it is
null then is will output a given alternative. i.e. nvl(parameter1,
value1) if parameter1 is null then send value1.
I have a servlet with the following snippet of code that I'd like to
streamline as this is one of many checks to be made...ideas?
if(request.getP arameter("idcol ")!= null)
{
int idcol = Integer.parseIn t(request.getPa rameter("idcol" ).trim());
}else{
int idcol = 0;
}
Comment