Passar scriplet jsp para tags Struts2

Como passo esse script para tags do struts2?

  <%
   int i = 0;
   int totalColunas = 4;
   if(i >= totalColunas && i % totalColunas == 0){
	  for(int count = 0; count < totalColunas; count++){
		  out.println("valor: " + count);
                  i++;
	  }
   }
  %>