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 8272845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:16:02+00:00 2026-06-08T07:16:02+00:00

I have the below applet in my code. I want to remove this code

  • 0

I have the below applet in my code. I want to remove this code from jsp and include on click of button and remove after jQuery success.

<applet id="jzebra-applet" name="jZebra" code="jzebra.PrintApplet.class" archive="${pageContext.request.contextPath}/jzebra.jar" width="1" height="1">
      <param name="printer" value="zebra">
</applet>

I am using jQuery and Struts2.

Thank you for your help in advance. Kindly let me know if any further information on my issue.

  • 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-06-08T07:16:04+00:00Added an answer on June 8, 2026 at 7:16 am

    Actually, according to the Java 6 docs, the most appropriate way of calling an applet is by using a javascript supplied by Sun. That’s because different browsers deal differently with an applet. Some want the EMBED tag, some want the APPLET tag and so on.

    Having said that, if you follow their recommendation, it’s just a matter of invoking the javascript in your on click event.

    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
    function runApplet(){
        var attributes = {
        code : 'jzebra.PrintApplet.class',
        archive : '${pageContext.request.contextPath}/jzebra.jar',
        width : 500,
        height : 300
        };
        var parameters = {
        printer : 'zebra'
        };
        var version = '1.6';
        deployJava.runApplet(attributes, parameters, version);
    }
    </script>
    ...
    <h:commandButton value="Run applet" onclick="runApplet();" action="#"/>
    

    I am using a commandButton from JSF here, but the same idea applies to whatever html-based presentation layer you’re using.

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

Sidebar

Related Questions

I want to have sum of values in a dict. Below is the code
I have a flex code that i got from a friend. But i want
I have below snippet of code in which TestClass is extending jPanel which is
I have below code: <a href=# id=@item.Id name=vote ><img src=/Content/images/021.png style=float:left alt= /></a> which
I have below code: class Program { static void Main(string[] args) { Task[] tasks
I have below string String str=select * from m_menus; select * from m_roles; I
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
I have below query I am trying to show message 'No SubSource for this
I have below trigger ALTER TRIGGER [dbo].[DeleteUserData] ON [dbo].[site_users] AFTER DELETE AS BEGIN SET
In the code below I want to replace plain ampersands with and while ignoring

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.