Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:34:37+00:00 2026-05-26T22:34:37+00:00

I’m trying the following code in JSP to embed an Applet into a JSP

  • 0

I’m trying the following code in JSP to embed an Applet into a JSP page but it can’t display it. The JSP code snippet goes below.

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Analog Clock</title>
    </head>
    <body>

        <jsp:plugin align="middle" height="500" width="500" type="applet" 

        code="AnalogClock.class"  name="clock" 

         codebase="E:\JavaProNetBeens\JSPProject\web"/>

    </body>
</html>

Where AnalogClock.class is a class file already complied successfully and placed in the relevant JSP project itself that displays an analog clock. The relevant snap shot is as follows.


Applet doesn't display.


The browser tells that it requires some additional plugins. Which plugins are needed to display an Applet on the browser or something else is wrong in the above code snippet itself?


EDIT: Generated HTML source code is as under.

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Analog Clock</title>
    </head>

   <body>

        <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="clock" 

        width="500" height="500" align="middle" codebase="http://java.sun.com/products

        /plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">

        <PARAM name="java_code" value="AnalogClock.class">
        <PARAM name="java_codebase" value="E:\JavaProNetBeens\JSPProject\web">
        <PARAM name="type" value="application/x-java-applet;">
        <COMMENT>

        <EMBED type="application/x-java-applet;" name="clock" width="500" height="500" 

        align="middle" pluginspage="http://java.sun.com/products/plugin/"   

        java_code="AnalogClock.class" java_codebase="E:\JavaProNetBeens\JSPProject\web"/>

        <NOEMBED>
        </NOEMBED>
        </COMMENT>

        </OBJECT>

</body>


EDIT: The applet displayed using the <APPLET></APPLET> tag but still not displayed using <jsp:plugin/>. The changes I have made can be visible from the following tags.

<jsp:plugin align="middle" height="500" width="500" type="applet" 

code="AnalogClock.class"  name="clock" codebase="http://localhost:8080/JSPProject"/>

<APPLET code="AnalogClock.class" codebase="http://localhost:8080/JSPProject" 
align="baseline" width="200" height="200">

<PARAM name="model" value="AnalogClock.class">

      No Java 2 SDK, Standard Edition v 1.4.2 support for APPLET!!
</APPLET>

<jsp:plugin/> demands some additional plugins. Which plugins are required? or may it not run for some other reasons, please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:34:38+00:00Added an answer on May 26, 2026 at 10:34 pm

    It would be intresting to see the generated source code.

    But how about instead of using macrros you create your object tag yourself like described here:
    Using OBJECT, EMBED and APPLET Tags in Java Plug-in

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
Does anyone know how can I replace this 2 symbol below from the string
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.