World's most popular travel blog for travel bloggers.

Describe with suitable program segment how to include file and applets in a JSP page.

, , No Comments

Basic Syntax

  1. <jsp:plugin type"applet | bean" code"nameOfClassFile"   
  2. codebase"directoryNameOfClassFile"  
  3. </jsp:plugin>  

index.jsp


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Mouse Drag</title>
    </head>
    <body bgcolor="khaki">
<h1>Mouse Drag Example</h1>

 <jsp:plugin align="middle" height="500"
     type="applet"  code="MouseDrag.class" name="clock" codebase="."/>

    </body>
</html>  

0 comments:

Post a Comment

Let us know your responses and feedback