Doubt: What is the best way to display data in a table?

1

I'm studying JSP and Servlets and also JQuery and I came across a situation.

Location:

Imagine that you are going to display a product table where 20 items per page will be displayed for example. With that, you have that famous operator (which I can not remember the name of):

  

Previous page - 1 - 2 - 3 - 4 - Next page

How to "operate" this "operator" ???

Case 1:

  • All this is controlled by the Server Side , that is, the click on each button handles a query to the DBMS or there is a created list; (Regardless of programming language).

Case 2:

  • Can be controlled by the Client Side , through a generated JSON by the server and manipulated by JQuery.

Thinking in general, in an e-commerce, public page or a private web system. Being one of the above cases or even another case, is there a correct or easier way to do this?

I looked for topics that would heal this doubt but I did not find it, so I opened it!

    
asked by anonymous 02.02.2018 / 21:03

0 answers