//Define Iterator iter
String policyPath = "";
while (iter.hasNext() )
{
deductionL = (DeductionsLoca l) iter.next();
String policyID = deductionL.getP olicyID();
policyL = policyH.findByP rimaryKey(polic yID);
if(policyL.getS tatus().equalsI gnoreCase("READ Y TO GO INTO FORCE")||policy L.getStatus().e qualsIgnoreCase ("IN FORCE"))
policyPath = "/NewBusiness/displayPolicyAp proved.jsp";
else
policyPath = Utils.getPolicy Path(policyL.ge tNextAction());
//other code
//end loop
}
why is it that policyPath has nothing for the rest of the iterations?
String policyPath = "";
while (iter.hasNext() )
{
deductionL = (DeductionsLoca l) iter.next();
String policyID = deductionL.getP olicyID();
policyL = policyH.findByP rimaryKey(polic yID);
if(policyL.getS tatus().equalsI gnoreCase("READ Y TO GO INTO FORCE")||policy L.getStatus().e qualsIgnoreCase ("IN FORCE"))
policyPath = "/NewBusiness/displayPolicyAp proved.jsp";
else
policyPath = Utils.getPolicy Path(policyL.ge tNextAction());
//other code
//end loop
}
why is it that policyPath has nothing for the rest of the iterations?
Comment