Display applet within html page

hi there,
i created an applet using the <embed> tag instead of the old <applet> tag. when i call the html page the applet is displayed in a separate popup. i want the applet to run on the html page - no popup.
how do i achieve this?
thanks for your replies!
koen

I think your tag isn't quite correct, try this one :
<HTML>
<body>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="300" align="middle">
<PARAM NAME="code" VALUE="KoenMain">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
     <COMMENT>
     <EMBED width="600" height="300" type="application/x-java-applet;version=1.3" code="KoenMain">
     <NOEMBED>
</COMMENT>
     This page requires a Sun Java Plugin 1.3
     </NOEMBED>
     </EMBED>
</OBJECT>
</body>
</HTML>
I tried this code (replacing KoenMain by a class of mine) and it works fine, with IE and Netscape, don't forget to specifie size (width, height) in your "EMBED" tag.
If it doesn't work for you, I think the problem comes directly from your applet code.

Similar Messages

  • Displaying multiple dynamic html pages within a single Portal folder.

    Hi all,
    Question: How can I display multiple dynamic html pages that are linked to each other, within a single portal folder?
    History:
    I have a designer/web server application (PL/SQL packakges) on Oracle
    8.1.7. Early in the development process we built it into WebDB2.2 and
    used folders on the left side as a navigation bar and the contents of my packages on the right side. This was easy, WebDB used Frames.
    Unfortunatley I could never automatically display a PL/SQL item in the folder area.
    Now I need to integrate the application into Portal 3.0 not the early adopters version, the one with 9iAS (NT for now, Unix later). I have a page/content area divided into regions and a navigation portlet on the left side containing links to PL/SQL folders whose contents are displayed on the right side. On the right side I have (for example) a Queryview. When I click on any of the buttons (i.e. Find, New), I land in a new page outside of my portal folder. This page contains a dynamically built list (from one or more DB Tables) and of course the first column contains a list of links that bring you to the individual item. How do I set my links or configure my folder to display
    within the portal folder area?

    Hi,
    One alternate is, increase the size of your screen, for this go to the layout of your screen and increase it as much you want, and also the custom container size, so that no scroll bar will appear at least.
    Other solution would be, as you said ALVs will be dynamical, it will be good to create buttons, or links on the screen based on the no of ALVs dynamically and on click of corresponding button call the corresponding ALV.
    But i dont think this will serve, first check the first option.
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • Displaying an external html page.

    Hello,
    Does any know if its possible to display an external html page within a container or area inside a flash catalyst project ?
    We have created a media gallery and would like to display it within an area of the finished Flash Catalyst project.
    Thanks,
    Antonio

    Hi Laurence,
    There are two ways to do this:
    1.  If you are developing an AIR application, you can use the HTML component to load a page inside AIR's HTML engine. Here's a post on how to do that: http://blog.everythingflex.com/2008/02/25/air-html-control/
    2.  If you are developing a browser application, you can overlay an HTML iframe on top of your Flash movie. You do this in HTML code. I've never actually done it, but here's a thread about it: http://codingforums.com/showthread.php?t=95109
    -Adam

  • Display pdf in HTML page with no toolbar

    Hello again,
    After successfully embedding a pdf file in my html page using
    the object tag, I need to know now how to do the same thing without
    having the toolbars displayed. Does anyone know if this is
    possible?
    Below is the code I used to successfully display the pdf in
    the page.
    Thank you again!
    ~Suzi Sunshine~

    I have not tested this in IE 6, but just so you know, The
    embed tag for a pdf will work for all browsers including IE7 except
    Opera.
    Ex. for a 800px x 100px header....
    <embed src="example.pdf" width="800px"
    height="110px"></embed>
    In Acrobat 8 select file>properties (shortcut ctrl-d)
    Select initial view, then check hide menu, hide toolbars, hide
    window controls. For magnification select fit width.
    The above example will still show a small background border
    which I could not get rid of, but may still work for you.
    Silk

  • Displaying image in html page

    hi one and all!!
    how can i display an uploaded image in same html page??
    i have uploaded that image using file input...but i couldn't able to make this image visible in the page where i want.plz write ur snippet..
    thanks!!

    A few things (also referring to the other topics in your topic spree):
    1) Chill down.
    2) Please write normal human readable English sentences.
    3) Show your effort in your problems.
    4) Ask specific coding problems. What have you written so far and what is failing exactly?
    5) Bookmark http://www.google.com and learn how to use it.
    To get straight on your initial question: you can display images in a HTML page using the <img> tag.

  • Can we pass arguments within HTML pages

    can we send some arguments among the HTML pages.
    eg: say if I have a form in one.html whose action is
    two.html?txtText=evil&txttext2=actuallywon
    if the same page was requested to a JSP page I could have retrived through request.getParameter("");
    But i dont know to do it in the HTML pages
    My concern is that the requested page two.html should get the values
    thanks

    You'll need to use JavaScript in your receiving HTML page (two.html) as documented in the blog entry [Get URL Parameters Using JavaScript|http://www.netlobo.com/url_query_string_javascript.html].

  • FLV. not working in SWF within HTML page

    I have created a SWF presentation which contains several videos as FLVs. The videos are uploaded to a folder on the clients server.
    The exported SWF and HTML files of the presentations worked perfectly when hosted on my local machine but when sent to the client, who uploaded to their own server, the SWFs ran but would not play the FLV files within. When they changed the HTML files to HTM they worked perfectly.
    However...when they embedded the pages into the content management system the use it required that the pages were reverted back to HTML, therefore the FLVs are not working again.
    The 'still' frame appears where the FLV should be, but the skin and the video itself does not load.
    Does anyone have any idea why this issue has occurred?
    Thanks in advance.

    @Ned
    Not sure about the folder structure of their site, to be honest they've been a nightmare client from day one so getting information like that out of them has been nigh on impossible.
    The flv files are all in a folder together and these are linked from the swf with this link structure: http://www.sitename.org.uk/folder/video.flv
    I'm not entirely sure how their CMS is structured. I was throwing this question out on the off chance that someone had seen a similar instance where HTML/HTM file types had affected functionality.

  • Failed to load applet in HTML page

    Hi,
    I cannot load my applet under IE9+, Chrome (v28). The applet is signed because it access to file resources.
    Applet deployment, Javascript code:
    <script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
    <script>
    if (deployJava.isPlugin2()) {
      // Launch as JNLP style applet if plugin2 is available
      var attributes = {'/files/ldep.jnlp'} ;
    } else {
      // old plugin and MacOS case  (currently isPlugin2() always false for MacOS)
      var attributes = { id:'ifsAuth', code:'org.ldep.AdminLogin', archive:'ldep.jar', width:1, height:1} ;
    // minimum Java needed:  1.5 or above
    var minimumVersion = '1.5.0' ;
    deployJava.runApplet(attributes, parameters, minimumVersion);
    </script>
    JNLP:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="" href="">
      <information>
      <title>LDEP Applet</title>
      <vendor>LDEP</vendor>
      </information>
        <security>
            <all-permissions/>
        </security>
      <resources os="Windows">
      <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se" />
      <jar href="/files/ldep.jar" main="true" />
      <nativelib href="/files/ldep-win32.jar" />
      </resources>
      <applet-desc name="ldep" main-class="org.ldep.AdminLogin" width="1" height="1" />
    </jnlp>
    Is there something wrong in this code?
    Thanks.

    Applets run client side - which means the relevant class files need to be downloaded to the client.
    Anything under the WEB-INF directory is not directly accessible by the client. Nothing under WEB-INF can be downloaded.
    ergo, specifying the WEB-INF directory as part of your applet codebase is a bad idea.
    I would suggest try copying the applet classes from under WEB-INF to some other place in your application.
    Also, you should probably specify the full class name of your Applet in the plugin tag.
    <%@ page import="com.util.MyApplet" %>
    <jsp:plugin type="applet" code="com.util.MyApplet" codebase="/classes" width="250" height="100" jreversion="1.6">
         <jsp:fallback>
              <B>Unable to start plugin!</B>
         </jsp:fallback>
    </jsp:plugin>cheers,
    evnafets

  • Applet in html page

    Sorry I'm geginner in java and not so good in english !
    My question:
    when i compile an applet classe for the first time and use the applet in a web page it works correctly. but when I modify the Applet class and compile it again and use it in the same page , I saw no changes .
    Also same page same classname.
    It look like if the browser do not close or destroy the class .
    when I restart the PC and load the page again , the modif take place correctly .
    Please , i need your help

    It's because your browser is caching the applet (storing locally to save download time).
    You should be able to force a reload, by holding down shift when you click reload.
    HTH,
    Radish21

  • Applet:how to display a html-page generated by servlet?

    hi everybody,
    I have an applet which posts data do a servlet and receives a response from the servlet (html-code). can anybody please tell me if there is a possibility to display this received html-page?
    (I HAVE to use a post-request to the servler due to a lot of data to send...)
    all my applet-servlet-communication is within a session with a jsessionid.
    does anybody have a hint for me?
    thanks a lot in advance,
    frank

    One possibility is to have the servlet create a new .html file on the server and output the HTML code to that file. Then the servlet can pass the name of the file back to the applet, and the applet can useshowDocument(new URL(yourUrlHere), "_blank"); to display the page.
    Just a thought. Good luck!
    - Sheepy

  • Display images stored in BLOB in html pages via JSP

    Hello,
    My images are stored in BLOB column of other base than portal.
    in JSP i have to display them in html pages.
    anybody have already did the same thing ?

    teggvb6,
    I believe you should be able to get it to work by doing the grants to the user specified in the DAD (i.e. the user that is logging into Oracle) rather than PUBLIC (someone else may correct me on this?).
    If you're concerned that the procedure could be called by others then I guess you could do some sanity checking within the procedure, for example checking v('APP_USER') or maybe v('SESSION') or perhaps do something clear with the REFERER http header? I haven't thought this through yet but I'm pretty sure you should be able to tie it down a bit more.

  • Displaying clickable html page in a JFrame

    Hello again programmers,
    i'm wondering how can i display a clickable html page in a JFrame using any Panel (JEditorPane,.....) can you show me the way plz?
    Bernard

    Makes a pretty crappy browser, but its OK for help-type functions.
    HtmlViewFrame.java
    import java.net.URL;
    import java.io.File;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    *Primitive HTML browser window based on a HtmlViewPane.
    public class HtmlViewFrame extends JFrame
    private HtmlViewPane pane;
    private JFrame frame;
    *Creates a frame based on a file.
    public HtmlViewFrame(File file) throws Exception
         this(file.toURL());
    *Creates a frame based on a URL.
    public HtmlViewFrame(URL url) throws Exception
         frame = this;
         getContentPane().setLayout(new BorderLayout());
         JPanel but_panel = new JPanel();
         but_panel.setLayout(new FlowLayout(FlowLayout.LEFT));
         JButton but_home = new JButton("home");
         but_home.addActionListener(new ActionListener()
                    public void actionPerformed(ActionEvent ae)
                   try
                        pane.home();
                   catch(Exception e)
                        JOptionPane.showMessageDialog(frame, "Error: " + e);
         but_panel.add(but_home);
         JButton but_back = new JButton("back");
         but_back.addActionListener(new ActionListener()
                    public void actionPerformed(ActionEvent ae)
                   try
                        pane.back();
                   catch(Exception e)
                        JOptionPane.showMessageDialog(frame, "Error: " + e);
         but_panel.add(but_back);
         getContentPane().add(but_panel, BorderLayout.NORTH);
         pane = new HtmlViewPane(url);
         JScrollPane jsp = new JScrollPane(pane);
         getContentPane().add(jsp, BorderLayout.CENTER);
         getContentPane().add(pane.getActionField(), BorderLayout.SOUTH);
    *HTML viewer application.
    *Uses java.lang.System.exit(int), so method should not be called from within a Java application.
    *@param     args     String array; provide a URL or file path as args[0]
    public static void main(String[] args)
         if(args.length==0)
              System.out.println("must provide File path or URL as argument");
              System.exit(1);
         Exception err = null;
         try
              File file = null;
              try
                   file = new File(args[0]);
                   if(!file.exists()) file = null;
              catch(Exception ex)
                   file = null;
                   err = ex;
              URL url = null;
              try
                   url = new URL(args[0]);
              catch(Exception ex)
                   url = null;
                   err = ex;
              HtmlViewFrame frame = null;
              if(file!=null) frame = new HtmlViewFrame(file);
              else if(url!=null) frame = new HtmlViewFrame(url);
              else throw err;
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(600,400);
              frame.show();
         catch(Exception e)
              err = e;
         if(err!=null) System.out.println("ERROR: " + err);
    HtmlViewPane.java
    import java.net.*;
    import java.io.*;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.html.*;
    *A HTML panel based on JEditorPane.
    *Suitable for rendering primitive HTML files such as help documentation.
    public class HtmlViewPane extends JEditorPane
    /**The maximum number of elements the object can hold in its history.*/
    public static int MAX_HISTORY_SIZE = 100;
    private Vector history = new Vector();
    private URL home;
    private JTextField lab_lastact = new JTextField("loaded document");
    *Creates a panel based on a file.
    public HtmlViewPane(File file) throws Exception
         this(file.toURL());
    *Creates a panel based on a URL.
    public HtmlViewPane(URL url) throws Exception
         home = url;
         setEditable(false);
         addHyperlinkListener(new HtmlViewPaneListener(this));
         setPage(url);
         lab_lastact.setEditable(false);
    void addToHistory(HyperlinkEvent e)
         lab_lastact.setText("ACTION: go here: " + e.getURL().toExternalForm());
         if(history.size()>=MAX_HISTORY_SIZE) history.removeElementAt(0);
         history.add(e);
    *Causes the pane to move back to the last item in the history.
    public void back() throws Exception
         if(history.size()==0)
              lab_lastact.setText("ACTION: exhausted history list (max size=" + MAX_HISTORY_SIZE + ")");
              return;
         HyperlinkEvent e = (HyperlinkEvent) history.lastElement();
         history.removeElement(e);
         processEvent(e, false);
         lab_lastact.setText("ACTION: back to here: " + e.getURL().toExternalForm());
    *Returns a JTextField that reports hyperlink, back and home actions to the user.
    public JTextField getActionField()
         return      lab_lastact;
    *Causes the browser pane to return to the initial page.
    public void home() throws Exception
         setPage(home);
         lab_lastact.setText("ACTION: home to here: " + home.toExternalForm());
    void processEvent(HyperlinkEvent e, boolean addtohistory)
         if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
              if (e instanceof HTMLFrameHyperlinkEvent)
                   HTMLFrameHyperlinkEvent  evt = (HTMLFrameHyperlinkEvent) e;
                   HTMLDocument doc = (HTMLDocument) getDocument();
                   doc.processHTMLFrameHyperlinkEvent(evt);
              else
                   try
                        setPage(e.getURL());
                        if(addtohistory) addToHistory(e);
                   catch (Throwable t)
                        t.printStackTrace();
    class HtmlViewPaneListener implements HyperlinkListener
    private HtmlViewPane pane;
    HtmlViewPaneListener(HtmlViewPane pane)
         this.pane = pane;
    public void hyperlinkUpdate(HyperlinkEvent e)
         pane.processEvent(e, true);
    }

  • Open a html page from an applet

    Hi,
    I would like to open, from an applet, an HTML page in a new window with a specific width an eight.
    Who can help me ?

    Here is an example of applet to javascript with liveconnect:
    http://www.narhari.com/java/applet2javascript/
    You can use the send(String) method from the sample applet to send something like:
    window.open('xyz.html','myPopup','width=200,height=200');in order to open a window with specific dimensions
    of course you can also build HTML in your applet and use send() + some javascript to render it.

  • Replace HTML page with an applet

    Hello to everybody!
    I created a servlet who can manage file upload from an HTML page.
    Now I want to replace that HTML page with an applet.
    I know that I need to use multipart/form-data , but I have no experience with applet.
    HTML page code is:
    <html>
    <head><title>Upload</title></head>
    <body>
    <FORM ACTION="http://localhost:8080/examples/servlets/servlet/UploadTest" ENCTYPE="multipart/form-data" METHOD=POST>
    What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR>
    Which file do you want to upload? <INPUT TYPE=FILE NAME=file> <BR>
    <INPUT TYPE=SUBMIT>
    </FORM>
    </body>
    </html>
    Any help for "translating" this html page into an applet?
    Applet will send, like html page, a string and a file.
    Thanks in advance, Liuk

    If you use something like Apache Http Client you dont have to do any low level implementations.
    Also if you are the one who is writing both servlet and applet you dot have to stick to standerd formats. you can develop your own format and write both servlet and applet to handle it. that kind of thing can be done easily even with URLConnection. But if you plan to send large files then URLConnection may not be the right option becouse I have seen many complaining that URLConnection gives OutOfMemoryErrors when uploading large amounts of data.

  • Jsp page calls javascript to be displayed in html page

    I want to test if user is logged in or logged out and put the logic of it on the header of my static html page (tomcat, apache)
    I would put .js code like this in my html header:
    document.getElementById("test").innerHTML= '<a href="/login.jsp>Login</a>
    And if user is logged in then put link to LOGOUT dynamicaly.
    I am using JSP page to check for logic login/logout:
    <c:if test=${!empty user">
    <p><a href="/logout">Logout</a>
    How do I implement following: call to the javascript from this JSP page to display on my html page (header) .
    I am not to use jsp on my html pages thus this workaround

    double post

Maybe you are looking for

  • An error occured in communication with the BW server.--urgent

    Hi all, Can anybody help me. i got 1 issue like ,when iam trying to executing query, iam getting the error pop up screen like 'An error occured in communication with BW server' 'Due to this ,the Connection Has To be Closed'. Detailed Description:   1

  • PSE 7 Printing to HP D7360 4 X 6

    Ever since I loaded version 7 and try to print to my 4 X 6 tray it only prints about 60% of the image and then kicks it out and does not print the rest.  Also experience this on my HP 1020.  My PSE 5 had not such problem.  I thought maybe a registery

  • +/- in Query ...

    Hi All, My client wants to see only some values as '+' and some values as '-' in the same column, while currently all values are showing as '-'. There are about 40 different values going againsts the rows currently. Is it possible to do so in the BEx

  • KM Management in Portal

    Hi, I have a Query Help documents (Custom) which provides information about queries. Every query in our system will be accompanied by a Help Document. How can I upload those documents to BI Meta Data repository and access them in Portal Thanks

  • Convert Interactive Form to Smartform

    Dear experts, Hello dear experts, I created 3 different Interactive Forms with the same interface. But out customer wants the forms as Smartforms. I would like to know whether it is possible to convert an Interactive Form to Smartform??? Thank you ve