I'm new, haven't figured out servlets yet. In general, on the index.html page (photo 1) I enter some data into the floor, send it, and display a simple servlet to a new page, nothing more (photo 2). But I do not want the servlet to display data on a completely empty page. I would like to create my own jsp, which would be more or less framed, and the data already on this page would display the data

Question: how can I connect my created page and enter data there? (by the way, keeping the styles)

ps the teacher said that before there was an approach such that it was the servlet that returned the page completely, so the servlet, as I understand it, takes the template of my jsp page .. and I don’t understand something further

Thank.

primary entry page

output page that I want to change to a well-designed

  • Create a markup and load data from a servlet there - Roman C
  • There are two approaches. The first is when you have static html + js, where js is requesting data from the AJAX server (something like the REST approach) and html is filling it with this data. The second is when html is fully generated for each request with data on the server side using various markup technologies over html (this is jsp). Well, plus a mixed approach. What of this interests you? - Temka, too,

0