Minecraft wiki entry for Spawner_traps, associated text: A classic water floor for normal dungeons.
Redstone lamps controlling a spawner.
Containing cave spiders.
A more elaborate farm, using water to wash them forward.