1

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?

1
  • The async part of Spring (Servlet-spec 3) allows you to keep sending data to the client after you have received the request. it is almost always used to generate data that is processed using JavaScript. If you used it for server side rendering you would keep adding to the bottom of the page, so the page would keep growing in length. Commented Jan 3, 2017 at 19:52

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

3 Comments

I'm trying to make it pure java style. Can you recommend something?
What is you runtime, is it a browser app, web on mobile, or IOS/Android.
If you use google maps, you will have to use JavaScript, there is no way around that!
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.