refactor gotour, support 1.8 and servlet 3.0.