Questions & Answers about U genitivu nema knjige, a u dativu dajem knjigu sestri.
They mean in the genitive and in the dative.
Here the sentence is talking about grammar cases, not about physical location. So u genitivu means in the genitive case, and u dativu means in the dative case.
Because after the preposition u meaning in, Croatian normally uses the locative case.
So:
A useful detail: even though the phrase says in the dative, the word dativu itself is not in the dative here; after u, it is functioning as locative. For these nouns, the locative singular happens to look the same as the dative singular.