The dorsal part of the pancreas develops from an outgrowth of the foregut into the dorsal mesentery. The spleen develops in the dorsal mesentery in the region between the body wall and presumptive stomach.