<%@ attribute name="title" required="true" %>
<%@ attribute name="style" required="true" %>
<%@ attribute name="scriptToCall" required="false"  %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@tag import="com.ulcjava.easydeployment.server.EasyDeploymentUtilities"%>
<%ServletContext servletContext=request.getSession().getServletContext();  %>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
name="${title}" style="${style}" >
<param name="java_code" value="<%=EasyDeploymentUtilities.toAppletLauncherClassName(  servletContext, request) %>">
<param name="java_archive" value="<%= EasyDeploymentUtilities.toAppletArchiveAttribute( servletContext ) %>">

<param name="type" value="application/x-java-applet">
<c:if test="${not empty scriptToCall}">
<param name="callscript" value="showApplet">
</c:if>
<param name="scriptable" value="true">
<param name="url-string" value="<%=EasyDeploymentUtilities.toUrlStringParam(request) %>">
<comment>
<EMBED style="${style}" type="application/x-java-applet" name="${title}" width="100%" height="100%" pluginspage="http://java.sun.com/products/plugin/" java_code="<%=EasyDeploymentUtilities.toAppletLauncherClassName(servletContext, request) %>" java_archive="<%= EasyDeploymentUtilities.toAppletArchiveAttribute(servletContext) %>" <c:if test="${not empty scriptToCall}">callscript="showApplet"</c:if> url-string="<%=EasyDeploymentUtilities.toUrlStringParam(request) %>" MAYSCRIPT=true />
<noembed>
Your browser does not support JDK 1.4 or higher for applets.
</noembed>
</comment>
</object>