How to call a servlet from an applet and vice versa?