jsp pages refactoring