rewritten for servlets. now I has clear idea of web app