write jsp files refactoring.