Evghenii Orenciuc
Evghenii Orenciuc

Reputation: 333

Spring MVC + Thymeleaf without JS

prehistory: I want to develop web app using java web framework. As backend i've chosen Spring MVC. As template engine Thymeleaf was chosen.

The question is: is it possible to develop an app, including async requests, without using javascript.

Thanks guys.

EDIT: How about Asynchronous Request Processing?

Upvotes: 1

Views: 751

Answers (2)

Klaus Groenbaek
Klaus Groenbaek

Reputation: 5045

No it is not possible. Thymeleaf, Velocity, JSP, JSF are all server side rendering, which means that you need re-generate the entire page if you want to change anything.

Also if you don't have JavaScript, the only requests you can make from the browser are form POSTs (multipart, or form-encoded) or GET requests when links are clicked.

It is possible to change a smaller part of the page if you use frames or iframes, but that is in no way recommended (I should not even write about it).

If you are building an app, I don't think there is any way around using JavaScript, but if you choose a good framework like Angular, even a backend developer (like myself) can build smaller async web applications.

Upvotes: 4

secondbreakfast
secondbreakfast

Reputation: 4384

Asynchronous web requests rely on javascript to work. You're not going to get very far trying to build a web application without javascript

Upvotes: 1

Related Questions