servlet: url dispatching logic