Calling Java from JavaScript

preview_player
Показать описание
Alejandro Duarte explains how to call JavaScript from java and Java from JavaScript using the Vaadin framework.

0:00 Intro
1:32 Calling JavaScript from Java
8:15 Calling Java from JavaScript
11:18 More about Vaadin

Typically, applications make server-side Java methods available to the client side by exposing them as end-points in a REST web service. Although this is a perfectly valid approach, this video shows an alternative way to call Java methods on the server without having to implement web services.

All you need to follow this tutorial is a basic understanding of the Java Programming Language, the fundamentals of JavaScript, JDK 8 or later, and a Java IDE.

Links:
Рекомендации по теме
Комментарии
Автор

I have a problem with running. I would like to run the app with mvn spring-boot: run. It shows the following error:
Failed to execute goal (default-cli) on project calling-java-from-javascript: Application finished with exit code: 1 -> [Help 1]. Could you help with it?

aigerimiskakova
Автор

the mvn:jetty run command ins't working for me, can you help me please ?

ExpertzeroDingley
Автор

This isn't calling java from javascript as the title states. It's calling javascript from java. I feel like I've been catfished.

alphabasic
Автор

I don't find the starting project. could you please post a current link for that?

hanswurscht
Автор

This doens't work on Version 14 apparently or maybe I'm doing something wrong

TheFMMsantos
visit shbcf.ru