how to perform interapplet communication ?

for eg:

I want to pass the employee number which I retrieved from the database using one applet to another applet for generating a query in the second applet.