Servelet & JSP Can use web.xml or Annotations to link form action to Servelet < form method = " post " action = " Validate " > Name: < input type = " text " name = " user " /> < br /> Password: < input type = " password " name = " pass " > < br /> < input type = " submit " value = " submit " > </ form > Welcome.java import java . io . * ; import javax . servlet . * ; import javax . servlet . http . * ; public class Welcome extends HttpServlet { protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { response . setContentType ( "text/html;charset=UTF-8" ) ; PrintWriter out = response . getWriter ( ) ; out . println ( "<h2>Welcome user</h2>" ) ; ...