How to validate html input data in servlets and then print servlets outputs

I am working on a google direction app. I want user to enter Origin and Dest. on html form, I want to validate that the data is the same as my direction in servlet, then display step-by-step direction outputs (from servlet) in a div below the HTML form on the same HTML page. Thanks

Read Full News
Submit your Tech Updates