Xinqi's modification on Servlet to display order