Calling Java from JavaScript

Learn how to seamlessly call server-side Java methods from client-side JavaScript without REST endpoints using Vaadin.

Updated September 2024.

In this step-by-step tutorial, you will learn how to use Vaadin to call server-side Java code from client-side JavaScript code. 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.

Build Better Java Web Apps 

One email a month: Vaadin release news, expert tutorials, and guides for Java developers.

Packaging and deploying Spring Boot applications as WAR files

This guide explains how to: Package a Maven-based Spring Boot application as a WAR file Deploy a WAR file to Apache Tomcat Deploy a WAR file to Eclipse Jetty Packaging a Maven-based Spring Boot application as a WAR file To change the packaging in a Maven-based Spring Boot application that was ...

Top 5 most common Vaadin performance pitfalls and how to avoid them

A couple of weeks ago I was coding a demo app when it dawned on me that if I was to use my code in a real-world application, it would consume unacceptable amounts of memory once it reached 100 or more concurrent users. Vaadin Flow makes it easy to start coding web applications, even if you have no ...
Test results

Introduction to load testing with Apache JMeter

Load testing allows you to simulate multiple users interacting with your application. This allows you to experiment with a real-world load on your application and understand its behavior under different levels of stress. In this article, I'll show you, step by step, how to run load tests on a ...

Learning Maven Concepts

Maven is a tool that many Java developers use on a daily basis. You can get started with Maven and incorporate it into your everyday life fairly quickly: Install Maven, download, checkout, or create a new Maven project, run mvn install, and execute the application through a plugin goal such as mvn ...
A chat developed in Java

Building a chatbot app in Java

Ever since I played my first role-based video game, I’ve been interested in chatbots (aka chatterbots). How could I implement something like this? Sure, I could code a bunch of if...else statements, but that sounded like a lot of work. Some years ago, I discovered AIML (Artificial Intelligence ...

Building a dashboard for a REST web service in Java

Vaadin is a great tool for building dashboards. Typically, a dashboard is a screen containing information, metrics, key indicators, and other data points related to business processes. Dashboards allow managers to track and monitor the health and performance of their organization. After seeing ...

Community Answer: Understanding inversion of control and dependency injection

There are two key concepts that you must understand when you start with Spring or JakartaEE/CDI–inversion of control and dependency injection. In brief, inversion of control means letting a framework take control of the execution flow of your program to do things like create instances of your ...

The Legendary Book of Vaadin is Back

I'm glad to announce that the new edition of the Book of Vaadin is now available and you can download it for free now at https://vaadin.com/book. Hard Copy and E-book This new edition of the book features Vaadin 14. There are two versions of the book – a hard copy version for carrying it around and ...

Java Bean Validation: A Comprehensive Introduction and Best Practices

Jakarta Bean Validation (previously known as Java Bean Validation) allows you to define data validations using annotations in your Java Beans. Its motto is "constrain once, validate everywhere". Available implementations Jakarta Bean Validation is an API defined by the JSR 380. Currently, there are ...