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.getParameter("idcol")!= null)
{
int idcol = Integer.parseInt(request.getParameter("idcol").tri m());
}else{
int idcol = 0;
}