JSP and Applet : Collaboration « JSP « Java






JSP and Applet

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<jsp:useBean id="date" class="java.util.Date" />

<html>
<head><title>A Clock in a JSP</title></head>
<body>
<h2>The time...</h2>

<jsp:plugin type="applet" code="Clock.class" codebase=
    "http://localhost:8080/home/applets" jreversion="1.4.1">

<jsp:params>

    <jsp:param name="scriptable" value="false"/>

</jsp:params>

<jsp:fallback>
Sorry, we are unable to start the Java plugin <br />
</jsp:fallback>

</jsp:plugin>

<br /><c:out value="${date}"/>
</body>
</html>



           
       








Related examples in the same category

1.JSP and Applet 1
2.JSTL: work with applet
3.JSP, HTML and SVG (Scaleable Vector Graphics)
4.JSP and Flash page
5.JSP and embedded Wmp
6.JSTL: Flash in a JSP
7.JSP and QuickTime (.mov file)
8.JSP standard actions: JSP and applet
9.JSPs and Servlets
10.JSPs and Servlets 2