Embedding Applet inside HTML

Hello,
I have implemented a class that implements java.awt.LayoutManager which uses a set of jar files to run the interface. The windows .bat file created to set classpath and running the java command works fine and the interface works.
This is the .bat file created.
java -cp MBJavaProject.jar;jar\MediaBinServer.jar;jar\axis.jar;jar\jaxrpc.jar;jar\saaj.jar;jar\commons-logging-1.0.4.jar;jar\commons-discovery-0.2.jar;jar\wsdl4j-1.5.1.jar;jar\activation.jar;jar\lib\mail.jar MBAdminConsoleBut while embedding it in the browser, it is causing problems and does not show the interface at all. I tried editing with lot of possibilities and here is the latest snippet used inside the html
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                height="300" width="450" >
          <param name="code" value="MBAdminConsole.class" />
          <param name="archive" value="MBJavaProject.jar,jar/MediaBinServer.jar,jar/axis.jar,jar/jaxrpc.jar,jar/saaj.jar,jar/commons-logging-1.0.4.jar,jar/commons-discovery-0.2.jar,jar/wsdl4j-1.5.1.jar,jar/activation.jar,jar/lib/mail.jar" />
        </object>When I tried this, it works though it pops out of the browser and open a separate window for the interface. Inside the browser, it has a erd 'x' sign and java console says that class can not be casted to java.applet.Applet
Can any one please suggest me the right code to embed in to the html so as to make the interface appear to work from the browser?
Thanks
Shivram Rajamanickam

The class can be casted to java.applet.Applet only if it extends java.applet.Applet.

Similar Messages

  • Emailing attached HTML file with embedded applet

    Are there any mail servers that could reject emails with attached HTML file that includes embedded applet in a Java Plug-in Object tags? It has an absolute path to a server where the applet resides.
    I have seen very few cases where Symantec Anti Virus filter is dropping the messages because of a mime problem. It appears that only two workarounds are to upgrade the Symantec product and to bypass our domain.
    Is there anything I could do to prevent the mime problem issue? I hope the Java applet is not an issue.
    John

    pberardi1,
    I hope you get better soon from the accident you must have had. Surely you must be in the hospital or something, otherwise by now surely you'd have had the courtesy to say a simple
    "Thank you".
    So,
    "You're welcome".

  • Embedding the Applets inside an activeX control

    Hi there !
    We r trying to embedd an applet inside activeX control.Anybody has any idea how to do this?
    Thanks,
    swami

    There is a tool available from Microsoft to do this (comes in part Microsoft SDK for Java) called javareg, this allows you to embedd java inside ActiveX. a search at http://support.microsoft.com will provide more info.
    Be wary of subsequent releases of the code though as there are dependencies on the generated type library. I think it only worked if further versions were created using the original type library can't remember but lots of headaches at the time.
    I think Sun provide an equivilent - java bridge ????
    ood luck I found it a real pain

  • Applet inside a UIX screen

    I am trying to use an applet inside my UIX page. does anyone have any thought on how to do this. I am using Jdev 10g for this. I have gotten as far as the error "element OBJECT not defined in parent pageLayout"
    maybe I just need to know where to stick the code?
    any thoughts?
    thanks

    ok here is the code.
    I would like the applet to appear in the middle of the screen, but this is where I could get the applet to display, also I have not put in the side nav yet.
    thank for the time and effort.
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider></provider>
    <contents>
    <document>
    <metaContainer>
    <head title="Heading here"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <pageLayout title="Title">
    <corporateBranding>
    <image source="ennovation.jpg" />
    </corporateBranding>
    <tabs>
    <tabBar>
    <contents>
    <link text="Home" />
    <link text="Configuration" />
    <link text="Tracking" />
    <link text="ReferenceTables"/>
    </contents>
    </tabBar>
    </tabs>
    <pageHeader>
    <globalHeader>
    <contents>
    <link text=" "destination=""/>
    </contents>
    </globalHeader>
    </pageHeader>
    <globalButtons>
    <globalButtonBar>
    <contents>
    <globalButton text="ERO Suite" />
    <globalButton text="Contact Us" />
    <globalButton text="Help" />
    </contents>
    </globalButtonBar>
    </globalButtons>
    <contents/>
    </pageLayout>
    <pageLayout xmlns:html="http://www.w3.org/TR/REC-html40">
    <contents>
    <html:object classid="clsid:8AD9C840-044E-11D1-B3E9- 00805F499D93" width = "1250" height = "575" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <html:param name = "CODE" value = "com.nwoods.jgo.examples.flower.Flower" />
    <html:param name = "CODEBASE" value = "." />
    <html:param name = "ARCHIVE" value = "Flower.jar" />
    <html:param name="type" value="application/x-java- applet;version=1.3"/>
    <html:param name="scriptable" value="false"/>
    </html:object>
    </contents>
    </pageLayout>
    <pageLayout>
    <contents>
    <copyright>
    <styledText text="Ennovation Inc 2004"
    styleClass="OraCopyright"/>
    </copyright>
    <privacy>
    <link text="Privacy Statement" destination=""/>
    </privacy>
    </contents>
    </pageLayout>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    </handlers>
    </page>

  • Handling events in javascript which are generated by embedded applet

    I am having an tipical requirement , In my HTML page there is an embedded applet . This applet is going to generate custom events . I would like to handle that events in javascript which are generated from applet . I mean that javascript has to get a notification of the event that is generated from applet . I would appreciate if some one can send me the code .

    Hi look at my post further down about 5-6 posts. It's called: "For your information. Very interesting." It talks about Netscapes Live Wire.

  • How to run applet inside a browser coz my applet runs outside the browser

    I would like to run the Java Applet viewer in-line inside a Browser Window. Presently, when launched through an html page, the applet opens another main window outside the browser. Can't seem to find any applet parameter tags for it. If there is a way to do that please let me know. Thanks in advance - m.a.

    public class mainGIS extends JApplet {
    public void init() {
    GISEditor tempGISEditor = new GISEditor();
    public mainGIS(){
         GISEditor tempGISEditor = new GISEditor();
         tempGISEditor.setTitle("Franchise Viewer");
         tempGISEditor.setSize(1000,600);
    and..
    <Html>
    <Head>
    <Title></Title>
    </Head>
    <Body>
    <APPLET CODE="mainGIS.class" archive="aaa.jar" WIDTH="800" HEIGHT="600">
    </APPLET>
    </Body>
    </Html>
    it opens outside a web browser!(it pops out) I mean, I want to display my application in-line with the browser

  • 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

  • Incorrect functionality of Embedded tag in html page, displaying object on top of all layers of Adobe air application native window

    Title
    Incorrect functionality of embed tag in html loader for adobe air development
    Description
    Problem Description: If we had loaded youtube.com video url in a view stack and navigate to other index of stack or away from we UI screen within the same native window video or embeded tag of flash player or any other embed object will be displayed on top of all screens layer in same position of where the object should be placed in side of html loader only.
    Steps to Reproduce:
    1) go to http://get.straweb.com/StraWebBrowser/StraWebBrowser.air download and install
    2) load 2 tabs and in the 3 tab load video player of youtube.com which will a sample video
    before completing the load of 3 tab which trying to load video from youtube.com, navigate to other tabs 1 or 2 in few second once the flash player of youtube.com video player is load it will display in the current tab or UI screen.
    3) Try navigating to other tabs than youtube.com loaded tab you see the flash player is on top it stable.
    4) navigate to 3 tab and try to navigate to other tab you can observe that so how it will not show that flash player and only visible in that 3 tab which is fine.
    Actual Result: Embedded tag of html page displaying on top of all layers of Adobe air application native window
    Expected Result: Embedded tag of html page should only displayed in side htmlloader
    This you can replicate in any adobe air plugin update and on any Hardware and Environment.
    Applicable to all sdk versions of adobe air.

    Adobe Bugbase: Bug 3823839 Incorrect functionality of embed tag in html loader for adobe air development

  • XML parser to parse XML inside HTML file

    Hi,
    I wish to know is there any other parsers apart from JAXP to parse xml content present inside HTML file. For example,
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    </head>
    <body>
    <form id="j_id_jsp_1394907664_1" name="j_id_jsp_1394907664_1" method="post" action="/msaiphoneportal1.1c/pages/xmlchech.faces;jsessionid=5666F0E1CF0E44B978940F021012AA41" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="j_id_jsp_1394907664_1" value="j_id_jsp_1394907664_1" />
    <?xml version="1.0" encoding="UTF-8"?>
    <hospital>
    <Users>
    <User id="1" password="x" type="staff" username="x"/>
    <User id="2" password="y" type="staff" username="y"/>
    <User id="3" password="z" type="staff" username="z"/>
    </Users>
    <Survey/>
    <Patients>staaatus</Patients>
    </hospital>
    <input type="hidden" name="j_id_jsp_1394907664_1:j_id_jsp_1394907664_2" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-4298162632826268059:-1507671971163298623" autocomplete="off" />
    </form>
    </body>
    </html>
    I need to read the XML content inside. Is there any way please let me know
    Edited by: DHURAI on Jul 22, 2010 12:59 AM

    DHURAI wrote:
    while reading, we can fetch the starting of XML through <?xml> tag, but how we know the ending of the XML as it seems to be dynamic.1) Extract the document root element which follows the <?xml ... ?>
    2) From this root element , construct the associated root element terminal by inserting a / after the <.
    3) Search for the terminal.
    If the root name can also be the name of an enclosed element then you will have to count the number of terminals.

  • Search for strings inside html tags ?

    Is there any way to get Spotlight to find search strings inside html documents? One example is I want to find any file that includes a certain alt=" " string inside an img src tag.
    Spotlight does not seem to include anything inside html tags in it's search, as far as I can tell.
    Am I missing something? Is there something I need to do?
    Thanks for any ideas,
    KarenD
    G5   Mac OS X (10.4.4)  
    G5   Mac OS X (10.3.5)  

    Very strange--it does find text inside the html files, but indeed does not seem to have text that is in the file but only appears within a tag. The solution is EasyFind by Christian Grunenberg:
    http://www.grunenberg.com
    You can do a content search on files in a particular folder, which I recommend since it does a brute force search and can take awhile if it has to search everything.
    Francine
    Schwieder

  • Stretch height in panelStretchLayout dont work inside html table?

    I need to put panelsplitter inside html table and i write something like this:
    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="position:absolute; padding:0px 30px;">
    <tr><td>XXXX</td><td>yyyyy</td></tr>
    <tr><td>
    <af:panelStretchLayout id="pt_psl1" styleClass="AFStretchWidth">
    <f:facet name="center">
    <af:panelSplitter splitterPosition="165" id="pt_ps1"
    inlineStyle="background-color:White; padding:0px 15px;"
    styleClass="AFStretchWidth">
    <f:facet name="first">
    <af:facetRef facetName="1"/>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    </td></tr>
    </table>
    But panel splitter dont stretch inside table componenet... there is a way to make it work?
    thnxs

    Don't mix HTML tags with ADF Faces tags.
    Instead you should use the ADF layout components to achieve what you are looking for.
    Use a panelStretchLayout and at the top facet put the xxxx yyyy in output text components.
    then in the center use the panelSplitter.

  • Handling multiple applets inside applet window

    Hi all,
    Does anyone know of a tutorial for handling multiple applets inside an applet window ?? Any suggestions would be greatly appreciated.
    Regards,

    Hello vhhuynh,
    Did you ever get a solution to your question: 'tutorial for handling multiple applets inside an applet window'?
    I have the same situation...
    thanks, msp@duke

  • Branding inside html ewa reports

    Hello,
    Anyone know if it's possible to modify SAP logo or add a new company logo inside html ewa reports ?
    regards,
    Luis

    Hi Luis,
    Unfortuantly, as far as I know it is not possible to modify the EWA report (no customizing is possible).
    However, what you can do is change some parts of the Service Level report which is subset of the EWA report which might help.
    You can change the Frontpage and Header and Footingin the SLR setup,
    when you navigate to node "Variant <variant_name>", in tabs
    - Report Front Page Customizing
    - Report Header/Footer Customizing
    Please see further details in www.service.sap.com/slr -> Media Library
      > "Service Level Reporting - Introduction", page 13.
    Unfortunately the SAP Logo cannot be removed or replaced from the SAP
    Standard Reports, but you can add/remove lines of text as per the
    docuemntation above.
    Thanks and Regards,
    Roland

  • Embeding Regions inside Popup Windows-Pattern

    Hi folks,
    i'm trying to build a prototype using the "Embeding Regions inside Popup Windows"-Pattern.
    I've got one emp-VO on a jspx page and a popup displaying the same VO as read-only table in a region created from a fragment.
    The popup should be used to choose a employee that could be edited on the underlying formular.
    The problem:
    When the popup opens only the header of the table and the text "Daten werden übertragen" (Fetching data) is displayed.
    But data is never displayed.
    Does somebody know what's going on?
    Thanks!

    Hi,
    if you use a dynamic region for this, make sure the managed bean that switches between the empty task Flow id and the Task Flow to show is neither in backingBeanScope, nor in request scope. It should be at least in viewScope.
    Frank

  • How To open applet inside AWT Frame

    Hi there !
    I want to open my applet directly inside a AWT Frame window from a hyper link...
    That is when a user clicks a hyper link i want to open my applet inside a AWT Frame...I do not want my applet to be opened inside a browser window is there any possibility to do this ...pls help me
    -Priya

    hi,
    i see one way, but i really do not know it works or not.
    Try the following:
    An applet is nothing more then a panel. So you can intanciate the applet:Class class1=new Class.forName(nameOfApplet);
    Applet a=(Applet)class1.newInstance(//maybe a parameter);
    frame.add(a);
    a.init(); //calling the init-method of the appletJust try, but I really can't commit you the workability.
    regards

Maybe you are looking for

  • How do I add my app to the "Device Family" of iPad

    I want to add my app to the "Device Family" of iPad as well - http://www.screencast.com/t/VlfuptLU Can someone please let me know how I can do this so when people search for my app on their iPad they can find it as well. Thanks

  • Unable to open a .zip file (Winzip) from the KM Repository

    Hi.... while i am trying to open a .zip file (i.e., Winzip file) placed in the KM Repository.. I am getting an error - "Cannot open file : it does not appear to be a valid archieve." Is it someting related to the Winzip version ? Can somebody plz tel

  • Can't bring up videos tab on my 3rd gen iPod touch

    As of late I haven't been able to bring up my videos using the button on the bottom of the touch screen. I can still watch music videos if use the search function or go through the music tab. When I press the video button the screen turns white for a

  • Problem with PDF viewing Colors not showing correctly (or black and white)

    My iMac and my Macbook are both not showing the pictures in a PDF correctly. My collegue who uses a Macbook has no issues. Im using version 10.7.5 on my macs. I have tried using the standard ' Preview' as wel as two different free PDF vieuwers from t

  • Skype login log??

    I'm wondering if there is a login log of my skype account. And if I cant access it then can skype customer rep access it for me to make sure my account isnt compromised??