I am trying to learn web programming using Java, and I ran into bunch of frameworks which supports servlet to create webpages, such as Jetty and Apache Tomcat.
If I wanted to create a web page that has one button(not text), is Jetty/Tomcat required? From what I read, it seems all tutorials uses Jetty/Tomcat and servlet to create even a simple text based webpage.
If all I wanted my server to do was to accept incoming connection and display a button on the webpage(for example, user would just type hhtp://1.1.1.1:8080 and a webpage with a button will show up), is Jetty or Tomcat still required? Can I do it without them?
If so, is there an example for it?