Calling applet in a jsp

Hi
How do i include an applet in a jsp file.I need to send a parameter to
the applet as well .
Thanks

You use an HTML Applet tag:
http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html

Similar Messages

  • Problem in calling applet function in jsp

    When i am trying to load Java applet through jsp, i get this error :
    Java Plug-in 1.6.0_02
    Using JRE version 1.6.0_02 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\pankajb
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class CAppletDisplay.class not found.
    java.lang.ClassNotFoundException: CAppletDisplay.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    <jsp:plugin type="applet" code="CAppletDisplay.class" codebase="." width="857" height="687" align="left">
            <jsp:params>
               <jsp:param name="machine" value="server" />
              <jsp:param name="port" value="1433" />
              <jsp:param name="Databasename" value="Timba" />
              <jsp:param name="userid" value="sa" />
              <jsp:param name="password" value="password"/>
               </jsp:params>
               <jsp:fallback>There is a problem with your browser ...</jsp:fallback>
         </jsp:plugin>

    load: class CAppletDisplay.class not found.
    java.lang.ClassNotFoundException: CAppletDisplay.classthat means that client jre didn't find the CAppletDisplay class.
    make sure that you put this class in the right directory.

  • Virus scan failed Error on deploying a web application having a jar file for calling the applet on the jsp page

    Hi,
    I have an applet application that i want to deploy on the Oracle cloud.
    So i have created a jar file for the applet application and i am using this jar to call the applet on a jsp page.
    But when i am delpoying my application on the java cloud, its giving me the below error:
    2014-10-28 03:16:41 CDT: Starting action "Virus Scan"
    2014-10-28 03:16:41 CDT: Virus Scan started
    2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
    2014-10-28 03:16:49 CDT: File Scanned: "Application7.ear".
    2014-10-28 03:16:49 CDT: File Size: "106698122".
    2014-10-28 03:16:49 CDT: File Status: "INFECTED".
    2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
    2014-10-28 03:16:49 CDT: Virus scan failed.
    2014-10-28 03:16:49 CDT: "Virus Scan" complete: status FAILED
    Can't we deploy any application having applet or swing component's onto the cloud?
    Or do we need to request for any extra permissions for the same?
    Thanks,
    Manoj

    I don't see applets mentioned in the supported features nor in the unsupported features so not sure if they are supported you would likely need to contact the operations team to confirm.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Calling an Applet from a JSP

              Hi,
              I need help with this, I want to invoke an applet from a JSP page. The applet code
              is compiled and resides in a separate jar file. The question is, how do I deploy
              this applet in weblogic 6.1 and then have a JSP call this applet.
              --Krish.
              

    To call an applet from a jsp use the <jsp:plugin> tag
              <jsp:plugin
              type="applet"
              code="classFileName"
              codebase="classFileDirectoryName"
              [ align="bottom|top|middle|left|right" ]
              [ height="{displayPixels |  <%= expression %>}"]
              [ width="{displayPixels |  <%= expression %>}"]
              [ hspace="leftRightPixels" ]
              [ vspace="topBottomPixels" ]
              </jsp:plugin>
              Krish Khambadkone wrote:
              > Hi,
              >
              > I need help with this, I want to invoke an applet from a JSP page. The applet code
              > is compiled and resides in a separate jar file. The question is, how do I deploy
              > this applet in weblogic 6.1 and then have a JSP call this applet.
              >
              > --Krish.
              

  • Calling applet in jsp page

    i have made a line graph in applet and i want to call that applet in my jsp project's page....
    <jsp:plugin type= "applet" codebase="." code= "ibill.lineGraph.class" width="400" height="400">
    </jsp:plugin>
    but it dosnt show the applet and give error of Loading java applet is failed....
    can anyone help me please
    with regards

    In one of my project i tried to load applet using the <jsp:plugin> tag but failed. Since i had less time so i have not done the R&D instead i called the applet as
    <applet id="MyApplet" code="MyApplet.class\" archive=\"MyApplet.jar\" width=5 height=3/>and it worked fine for me. You can try this method.
    NOTE: My applet jar file was in the same directory of my JSP page
    Message was edited by:
    diptaPB

  • Calling applets in jsp

    Hi All,
    When I tried to call an applet in my JSP page ,it says like " java plugin not installed properly"...I don't know what is wrong with my installation.I'm using jswdk server.
    Could anyone help me please....
    Would Appreciate if I get help.
    Subha.

    Hi
    A plugin is used as a substitute to the browser VM as somtimes the client browsers may not have the right version of the VM to run some components like Swing etc.
    The way you handle this in JSPs is that you use the <jsp:plugin> option . Any good tutorial on JSps will give you information on this.
    One place to start would be:
    The <jsp:plugin> directive takes care of generating all the HTML code necessary to embed and activate a Java applet. Consider the following example:
    <html>
    <head>
    </head>
    <body>
    <jsp:plugin type="applet" code="NewsTicker.class" name="newsticker"
    height="100" width="100">
    <jsp:params>
    <jsp:param name="x" value="10"/>
    <jsp:param name="y" value="25"/>
    <jsp:param name="cx" value="90"/>
    <jsp:param name="cy" value="114"/>
    <jsp:param name="bgcolor" value="102,102,153"/>
    <jsp:param name="textcolor" value="0,0,0"/>
    <jsp:param name="hilitecolor" value="255,0,0"/>
    </jsp:params>
    <jsp:fallback>Oops! Something bad happened and I can't display this
    applet</jsp:fallback>
    </jsp:plugin>
    </body>
    </html>
    The code above sets up the applet contained in "NewsTicker.class", and passes it a bunch of name-value pairs of parameters. The <jsp:param> tag is used to pass these
    parameters to the applet, while the <jsp:fallback> directive contains error text, in the event that the applet cannot be found or displayed.
    When JSP compiles and renders the page, the code above is automatically converted to its HTML equivalent.
    <html>
    <head>
    </head>
    <body>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="100"
    height="100"
    codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
    ersion=1,2,2,0">
    <PARAM name="java_code" value="NewsTicker.class">
    <PARAM name="type" value="application/x-java-applet;">
    <PARAM name="cy" value="114">
    <PARAM name="cx" value="90">
    <PARAM name="bgcolor" value="102,102,153">
    <PARAM name="hilitecolor" value="255,0,0">
    <PARAM name="y" value="25">
    <PARAM name="x" value="10">
    <PARAM name="textcolor" value="0,0,0">
    <COMMENT>
    <EMBED type="application/x-java-applet;" width="100" height="100"
    pluginspage="http://java.sun.com/products/plugin/"
    java_code="NewsTicker.class"
    cy=114
    cx=90
    bgcolor=102,102,153
    hilitecolor=255,0,0
    y=25
    x=10
    textcolor=0,0,0
    >
    <NOEMBED>
    </COMMENT>
    Oops! Something bad happened and I can't display this applet
    </NOEMBED></EMBED>
    </OBJECT>
    </body>
    </html>
    The above sample was taken from the two links shown below.
    - http://home.netscape.com/assist/net_sites/embed_tag.html
    - http://www.devshed.com/Server_Side/Jserv/JSP8/print.html
    For further reading the documentation that comes along with your application server should provide ample guide to using jsp:plugin with your applets.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • How can I use a applet in a JSP file?

    hi
    I failed to use applet in a jsp file.My workspace is a BC4J type. I put the applet's source file in business component project.the jsp is in JSP project.
    The jsp file calls applet by <jsp:plugin></jsp:plugin> style.
    The error is can't find the applet class.
    why? Thank someone for give me help.

    Actually using jsp applet tags does not mean that it is taking care of that the classes are available. It simply renders the Applet tag tothe JSP page. If e.g. teh codebase is specified as /java/, then there should be a mapping to the Java class location with thename of /java/. If codebase is not provided, then the Java class must be in the classpath of the JSp servlet.
    Frank

  • Use an applet in a Jsp to display data from Oracle DB

    Hi everyone, I'm very new to java my question is:
    Is there a way to display an applet like a table within a Jsp to display data from a Oracle DB? The thing is that I would be able to show this applet only at the click of the submit button in my html form.
    Please help me any sample code are welcome
    Thank you in advance
    Fabry

    Hi,
    Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
    Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
    <html><head><title> Demo Applet</title></head>
    <body bgcolor="rd">
    <% if (request.getParameter("SUBMIT") != null) {%>
    <jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
    <jsp:fallback> Plug in not supported by your browser</jsp:fallback>
    </jsp:plugin>
    </body></html>
    Hope this will help you.
    Rgds,
    Ravi Shankar

  • Passing input parameters from an applet to a JSP page

    Hello all,
    Yes, its one of these questions which I have tried to find a solution from the already large number of postings but with no luck. I'm still a novice to Java/JSP so bear with me.
    Consider this scenario.
    1. An applet which has two input boxes (say First name and surname). 2. These parameters will be passed to a JSP page (so the applet will call a JSP page).
    3. The JSP will have have the necessary logic (or actually a JavaBean will) to connect to a database and add a new record with these parameters (first name and surname).
    I also need to consider editing/updating the record in the database. So a JSP page will connect to the database, retrieving the required record from the database and then display the parameters back in an applet in two input boxes (first name and surname) to be edited and saved again.
    I have been able to develop a similar application using simple HTML forms to add and update records in a database so I'm not worried about the database connectivity simply the issue of passing parameters from the applet to the JSP page and vice versa (for edit/update).
    Once i've managed to do this with input boxes, I can experiment with the other input types radios, checkboxes, select etc.
    Many thanks in advance,
    Assad

    create an URL object with u'r specified link of the java class and send the parameters..write trhis action in any buttonclick event in u'r applet.

  • How to call BPEL process in JSP page

    Hi
    I am new to BPEL.please help me how to call BPEL process in JSP page.
    Thank You...

    Check this thread ....
    How can i call asyncronous BPEL process from Java Class????
    Tom..

  • Error while calling applet in HTML in SAP NWDS

    Hi,
    We have written a java code with Main method and we are trying to run it on web. So we have written another piece of HTML code where we are calling the othe program with applet. But getting below error.
    Below is exce[ption I am getting while running jree charts made in java :
    Java Plug-in 1.6.0_24
    Using JRE version 1.6.0_24-b07 Java HotSpot(TM) Client VM
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.reflect.InvocationTargetException
    at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: java.lang.InstantiationException: org.jfree.chart.demo.BarChartDemo
    at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.InstantiationException: org.jfree.chart.demo.BarChartDemo
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    ... 15 more
    Exception: java.lang.reflect.InvocationTargetException
    Below is html code run to call applets :
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "" title="http://www.w3.org/TR/html4/loose.dtd">" class="link">http://www.w3.org/TR/html4/loose.dtd">
    (http://www.w3.org/TR/html4/loose.dtd)
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Hello</title>
    </head>
    <body>
    <applet code=org.jfree.chart.demo.BarChartDemo archive="src.jar" width="320" height="120"></applet>
    </body>
    </html>
    Please suggest.
    Regards
    Agamani

    Hi,
    Though there are a lot of importing parameters, you should give only one structure for outtable, and read as index 1 and index 2.
    FORM GET_SPRAS TABLES intable   STRUCTURE itcsy
                                              outtable  STRUCTURE itcsy.
      DATA: lv_kunnr LIKE kna1-kunnr.
      CLEAR: GV_SPRAS.
      lv_kunnr = intable-value.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = lv_kunnr
        IMPORTING
          output = lv_kunnr.
      SELECT SINGLE LAND1 SPRAS INTO (gv_land1, gv_spras) FROM KNA1
        WHERE KUNNR = lv_kunnr.
      IF sy-subrc = 0.
        READ TABLE outtable INDEX 1.
        outtable-value = gv_spras.
        MODIFY outtable INDEX 1.
        READ TABLE outtable INDEX 2.
        outtable-value = gv_land1.
        MODIFY outtable INDEX 2.
      ENDIF.
      IF gv_land1 EQ 'DE'.
        CLEAR: GV_LAND1,
               GV_SPRAS.
      ENDIF.
    ENDFORM.
    Edited by: Srinivas Kalluri on Mar 30, 2009 5:00 AM
    Edited by: Srinivas Kalluri on Mar 30, 2009 5:10 AM

  • Error while calling applet from Javascript via LiveConnect and WebDriver

    Hi all,
    I am trying to call applet Java code from Javascript via WebDriver.
    Given the following two cases:
    - calling a static method: Integer.parseInt("42")- constructing a new object: new String("Hello world")My Javascript code looks like this:
    document.appletId.Packages.java.lang.Integer.parseInt("42");
    new document.appletId.Packages.java.lang.String("Hello world");When executing this code in Firefox via the Firebug Javascript console everything works fine and I get the expected results. However, when executing this code via the JavascriptExecutor from WebDriver only the call to the static method succeeds, the construction of the new object leads to the following error: "Attempt to call a default method on object with no invokeDefault method."
    I don't have any idea what is going wrong here, so any help would be greatly appreciated.
    Thanks!

    Hello Gerard, Hello Krishna,
    -> The liveCache application failed with COM error::
                                   40028 Illegal timestamp in rough timegrid
    More details about COM error 40028 you will see in TA /n/sapapo/om10
         -> Return code: 40028 -> execute ::
    Invalid time stamp in the time buckets profile relation     
    ( om_ts_tgrelinvalidstamp )     
       < click on '?' mark >
    -> Open an OSS message in accordance with SAP note 167280 if further help
         needed to solve the issue on your system.
    Thank you and best regards, Natalia Khlopina

  • Calling web service from JSP

    Can anyone help??
    I'm trying to call a webservice from within a JSP and i havent a clue how its done,
    i have my IF and Impl and Client Coded and my stubs generated and service deployed and running, but i cannot figure out how to call the service from my JSP web-app.
    Any help appreciated!

    Hi ,
    Its easy to call a WS from jsp what you can do is this. Think in manner that u will be keeping the client classes on a particular container, then in same container you can refrence the classes and can invoke service through a jsp..this works in my case.. it depends what kind of client do u want to create may be static or proxy or DII

  • Call applet methods from Javascript

    Hello,
    If I call applet method like :
    function callbackFunc(){
        var pp = appletID.getData();
        alert(pp);
    It works only if applet is deployed with <APPLET> tag or with javascript.
    If applet is deployed using <Object> and <embed> tags, in browser console the error is :
    TypeError: appletID.getData is not a function
    I couldn't find why is that behaviour. What do I do wrong?
    Thanks

    Hi Paul,
    (1)Seems to be your Java Runtime Environment path is still setted for JRE 1.3.0_01 and not for 1.3.1. So pelase go to the
    Control Panel-->java plugin 1.3.1-->Advanced. Here you set the Java Runtime Environment to the JRE 1.3.1 version. Its better to remove the older version before installing the new version on JRE.
    (2)<OBJECT> tag won't work for Netscape. You can only use <APPLET> or <EMBED> tag for Netscape.
    Hope this will help you.
    Anil
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Trouble with an applet on  a jsp page

    hi, thanx for readin it!
    im developing a webapp tha have some swing applets , the problem is that the applets dont work, they appear but dont play anything, i use the jsp:plugin to load the applets on the jsp, i also have instaled the java plugin on my win xp pc, i use tomcat 5. well i hope you can help me

    were are the applet classes? under WEB-INF? If so, then they shouldn't be as the server won't server files under that directory and the browser needs them

Maybe you are looking for

  • Syncing problems with iphone 3g and dell computer

    Whenever I connect my iphone to my computer, it recognizes it as a camera, not as a phone, and it asks me if I want to use microsoft word or another random program to see photos. itunes doesn't recognize it at all. How do I get itunes to recognize it

  • Unable to connect 2 Macs over internet

    Hi, Here is a situation that the tech support at my ISP seems to be clueless to help me with. I have an iMac G5 (OX 10.4.4) and my son has an eMac (OS X 10.4.3) He lives two miles away. I am connected to the net via a cable modem he has a DSL modem t

  • Large paper printing in Deskjet F4180

    Hello, I'm trying to use my Deskjet F4180 to print a paper the size of 21x100 cm. meaning, the width of a normal A4 (therefore fits in to the printer's paprt feeder) - but LONG. I am printing from Indesign, on a mac, mac os x 10.6.3 I believe it shou

  • Restoring the value in table- SETLEAF

    Dear all, Kindly help for the below issue. Due to wrong transport request in production system, all the value in the table - SETLEAF  has been over writen. We try to find out the old entry in the table. Is there any way where we can find the old valu

  • Screen rotated 90 degrees. How do I reverse this? ANSWERED!!

    SORRY - just posted this question and then finally a lightbulb turned on and I went to the GMail HELP page. The secret is to push ALT + DELETE + "Up" arrow. Problem solved!!