I would like to create a front-end interface in HTML that interacts with a Java program via an HTML form. I would like to be able to publish this project on the Internet.In other words, the text entered in the input fields of the form would be sent to the Java program as arguments once the user clicks Submit. The Java program would then execute, and send its output back to the HTML front-end.At a high level, how do I accomplish this task? What technologies, frameworks, etc are required to make this happen, and how would they fit into the project?
Connecting an HTML form to a Java program
java;design;architecture;html;jsp
I'd start by checking out simple Java servlets. They provide a relatively straightforward means to implement HTTP methods at the server side. More complex frameworks exist, but they'll sit on top of the standard servlet framework.e.g. here's a simple servlet method to return a web page upon requestpublic void doGet(HttpServletRequest request,                    HttpServletResponse response)            throws ServletException, IOException  {      // Set response content type      response.setContentType(text/html);      // Actual logic goes here.      PrintWriter out = response.getWriter();      out.println(<h1> + message + </h1>);  }(from the tutorial here)