This is not possible using Java applets . One thing you can do is, your applet will take inputs from the user, transfer it to some server program, generate the intended page on the server side. And now this page can be shown to the user again using showDocument . So this will involve client server communication, which you can achive using RMI / CORBA etc. Or you can better go for Servlets which will be the most suitable solution for your problem.