refactor jsp