The applets can be written using a programming language such as Java.
A Java program may execute its action logic on either a client or a server (although applets often execute logic on a client's computer).