From the described experiment it is clear that the mere act of eating, the food even not reaching the stomach, determines the stimulation of the gastric glands.
So the stimulation effected by the act of eating reaches the gastric glands by means of the nerve fibres that are contained in the vagus nerves.