Code:
//Define Iterator iter

String policyPath = "";
while (iter.hasNext()) 
{
deductionL = (DeductionsLocal) iter.next();

String policyID = deductionL.getPolicyID();

policyL = policyH.findByPrimaryKey(policyID);

if(policyL.getStatus().equalsIgnoreCase("READY TO GO INTO FORCE")||policyL.getStatus().equalsIgnoreCase("IN FORCE"))
	policyPath = "/NewBusiness/displayPolicyApproved.jsp"; 
else
	policyPath = Utils.getPolicyPath(policyL.getNextAction());



//other code
//end loop
}
why is it that policyPath has nothing for the rest of the iterations?

Last edited by shabbir; 29Jun2007 at 17:08.. Reason: Code block