0

I have a sport matches list for every day. My goal is print this list on the web page by url mysite.com/sport/year/month/day. All data about matches is saved in the database. I use Java Spring on server and AngularJS on web app. My question is which practice is better. Or prepare jsp file with html and send it when client do request or use AngularJS and get matches object from server by json format and then bind data to html template.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Edgaras Karka
  • 7,400
  • 15
  • 61
  • 115

1 Answers1

0

What you are referring to are two different approaches to building a web application.

The first is considered a traditional client-server web application, while the second is a single-page application, also known as a SPA.

The are advantages and disadvantages listed for each approach. You should choose the approach based upon your requirements of the application you are building.

There are many links to these on the web. Here is one: Single Page Application: advantages and disadvantages

It should also be noted, that hybrids of both approaches are also valid and are very appropriate in many situations. This is where part of your application is a SPA, while the rest follows the traditional client-server architecture.

Analyse what's your requirements, and choose IMHO.

Community
  • 1
  • 1
Prabu
  • 4,097
  • 5
  • 45
  • 66