webDemo:update codes to use servlet as controller