Answer the question
In order to leave comments, you need to log in
Java - passing data from servlet to display?
Good morning!
I have a perhaps trivial, but very important task - it is necessary to implement the optimal transfer of various data structures according to the following scheme:
DB --> Servlet --> display using HTML5
I wanted to ask more experienced Java developers - how can I best organize this, with taking into account the minimization of traffic?
Answer the question
In order to leave comments, you need to log in
Um… traffic between the database and the servlet or between the servlet and the client? Or what in general? What is “transfer of various structures” anyway? Refine the task. There are at least a hundred ways to implement your scheme. Maybe you mean just working with the database through the web interface?
Server:(DB-Servlet)-Traffic:(xml/json)-Client:(JS/frameworks).
Or you can generate ready-made html directly in the servlet.
> The data can be various - from the text to pictures
Pictures are usually stored in the form of a way in a DB - the same text.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question