jsp refactor