servlet: finish http request code; need to implement URL generator by our own