World's most popular travel blog for travel bloggers.

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

, , 1 comment

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>  

1 comment:

Let us know your responses and feedback