Is the ventral cavity anterior or posterior to the dorsal cavity?

the ventral cavity is anterior to the dorsal cavity which is in the posterior.