web-based application from front-end to back-end using js+servlet+mysql