How did General Allenby took over Jerusalem without facing single war from powerful ottomans?

by galamiov
CptBuck

Sorry, what do you mean by "without facing single war"? The Ottomans had fled the city in the face of the British advance as it was not defensible, risked facing a complete siege and their lines had been broken. The text of the surrender itself also cited a desire to avoid damage to the holy places. Fighting in the vicinity of the city prior to that, however, was quite intense even if it was characterized by a general near-continuous British advance.

In a somewhat comic moment the city's civil authorities actually had trouble surrendering the city because they kept surrendering to subordinate British units. IIRC they ended up formally surrendering Jerusalem four times.