© Peter Späth 2019
P. SpäthBeginning Jakarta EEhttps://doi.org/10.1007/978-1-4842-5079-2_5

5. Building Single-Page Web Applications with REST and JSON

Peter Späth1 
(1)
Leipzig, Sachsen, Germany
 

In Chapter 4 we talked about creating multi-page web applications via Java server faces (JSF). The central paradigm of JSF is the communication between the user (browser) and the server via forms, although using the <f:ajax> tag makes a more fine-grained communication possible because only the form part needs to be transmitted to the server.

A totally different paradigm operates under the name single-page application or SPA. Here, only one page gets loaded for the whole application, the user interaction or front-end logic gets handled by JavaScript, and the ...

Get Beginning Jakarta EE: Enterprise Edition for Java: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.