slicing html to jsp