Spring MVC - REST what frontend technology should I choose?

General Tech Technology & Software 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I would like to ask a short question. It is: I want to create some web-application using Spring. I wanted to make RESTful webservice and handle it with HTML5 and jQuery but someone told me that it is stupid idea, wasting my time.

So I would like to know which technology is more used in: companies, by you, programmers in your private projects etc. I have heard about:

  • Freemarker
  • Velocity
  • JSP

And now I am wondering - should I return the view using some template engine from the list above or handle it with JS to present the data on the web and return just JSON from controllers? which way is the best approach?

I am going to create simple Spring, JPA etc. application and develope it by adding more utilities - just to learn java-web-developing for myself :)

Thanks for answers!

profilepic.png
manpreet 2 years ago

I would recommend a JSP. You can still use HTML5 and JQuery within the jsp. There are TONS of tutorials out there specific to Spring and JSP.
As to whether to use a returned view or js I would say try both. It depends heavily on how you want your web-app to "act" If you are comfortable with page reloads and redirects... take the view approach. If you prefer not to refresh the whole page, naturally JSON would be the way to go.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.