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

Asked

Viewed 30 times

1

I am studying JSP and Servlets and also Jquery and came across a situation.

Situation:

Imagine that you will display a product table where 20 items per page will be displayed for example. With that, you have that famous operator (which I don’t remember the name):

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

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

Case 1:

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

Case 2:

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

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

I looked for topics that cured me this doubt but I did not find, so I opened this!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.