Why don't you use <jsp:plugin> ?? This tag will execute the specified part of the program whether it is a bean or an applet. So, please try like this. <jsp:plugin type="applet" code="theClassFileYouWantToExecute" codebase="theClassFile'sDirectoryName" > <jsp:param name="yourParameterName" value="<%=yourValue%>" /> <jsp:fallback> <!--- Give your message if you are not able to find or execute your applet. --> </jsp:fallback> </jsp:plugin>