#set($count = 0) #foreach ($errormsg in $errormsgs) #if(($count==1)||($count==4)) #else #end #if($count==4) #set($count = 0) #else #end #set($count = $count + 1) #end

$errormsg$errormsg