ArrayList
bundle=new ArrayList(); //first we have to
initialize the Array List
if(empname.contains("@"))
{
bundle.add(new OABundleeption("Special
character not allowed",OABundleeption.ERROR));
}
if("".equalsIgnoreCase(pageContext.getParameter("StartDate").trim()))
{
bundle.add(new OABundleeption("Start
date shold not be null",OABundleeption.ERROR));
}
if(!bundle.isEmpty())
{
OABundleeption.raiseBundledOABundleeption(bundle);
}
}
No comments:
Post a Comment