Applet reloading w/ html frames

My applet is in a navigation bar, in its own html frame. When going to another page, I load a new html frame set. The applet html frame is still the same, the other frames change.
HTML knows how NOT to reload the html frame that contains the applet, since it's the same as before. But the applet itself will reload everytime. I mean, the applet classes don't load again, but the applet process starts again, going through the init() method.
I thought it would go to start() directly, which is what I want.
What should I do?
Miguel

Applets need to be initialized when the page is loaded so you can't reliably avoid it. (making a static flag would solve the problem on some browsers so that the code is performed only when the class is loaded, but some browsers do reload the classes every time...)
Why do you need to load a new frameset? You do know that you can specify the frame where the document will be loaded with the sencond parameter of the showDocument-method....

Similar Messages

  • Resize applet within a HTML frame

    Hi,
    I am using an applet to display a tree in a HTML frame of a web page.
    I would like to resize or refresh the applet when the HTML frame is resized. Is there a way for the applet to know when the HTML frame is resized?
    Any help will be appreciated.
    Thanks

    I tried using the componentResized() method to solve this problem but I was unsuccessful.
    Here is what I tried:
    My application consists of using a Java applet to display a tree in a HTML frame. In addition I put the tree in a scroll pane. I tried using addComponentListener(this) to get the componentResized() method to be involked. I tried adding the component listener to the scroll pane:
    JScrollPane treeView = new JScrollPane(tree);
    treeView.addComponentListener(this);
    I tried adding the component listener to the root pane:
    JRootPane root = getRootPane();
    root.addComponentListener(this);
    and I tried adding the comoponent listener to the glass pane and the content pane.
    The componentResized() method was involked when the tree was initially displayed in some of my attempts but I was never able to get the componentResized() method to be involked when I resized the html frame.
    I believe that I am having a problem determining which component to add the addComponentListener to so that the componentResized() method get invoked when I resize the html frame.

  • JSP applet tag X Html applet tag (what is the difference?)

    what is the advantage in using the JSP applet tag instead of a simple Html applet tag ?
    second question:
    I have an applet in a Html frame, and a menu on the left side.... When the user select the applet option at first time, everything runs ok.. after the user select another option and then select the applet again, it fails in some features .. Why ?

    well, if by "the JSP applet tag", you mean the jsp:plugin tag.. that will just generate the same HTML tag you would write. The only advantage would be it should be less typing to use the taglib.
    second answer:
    without seeing any code, it'd be hard to figure out the problem. The obvious thing is you are setting some state of something that is preventing further action.

  • How to show applets in a html file ?

    Hi all
    I have created an applet with jdev ,and I also generated the corresponding html file and a main method. So the java file runs standalone when I click on the run button , but when I copied the class file and the html file in a web server, then there is nothing in the applet region ! Can anyone help me ?
    Here are the code :
    Code of the java file :
    // Copyright (c) 2001
    package pack_applet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * Applet
    * <P>
    * @author xxxx
    public class Capplet extends JApplet {
    boolean isStandalone = false;
    String x;
    String y;
    JLabel label = new JLabel();
    * Constructs a new instance.
    * getParameter
    * @param key
    * @param def
    * @return java.lang.String
    public String getParameter(String key, String def) {
    if (isStandalone) {
    return System.getProperty(key, def);
    if (getParameter(key) != null) {
    return getParameter(key);
    return def;
    public Capplet() {
    * Initializes the state of this instance.
    * init
    public void init() {
    x = this.getParameter("x", "0");
    y = this.getParameter("y", "1");
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.setSize(new Dimension(400, 400));
    this.getContentPane().add(label, BorderLayout.CENTER);
    label.setText("x = "+x+" y = "+y);
    * start
    public void start() {
    * stop
    public void stop() {
    * destroy
    public void destroy() {
    * getAppletInfo
    * @return java.lang.String
    public String getAppletInfo() {
    return "Applet Information";
    * getParameterInfo
    * @return java.lang.String[][]
    public String[][] getParameterInfo() {
    String[][] pinfo =
    {"x", "String", ""},
    {"y", "String", ""},
    return pinfo;
    * main
    * @param args
    public static void main(String[] args) {
    Capplet applet = new Capplet();
    applet.isStandalone = true;
    JFrame frame = new JFrame();
    frame.setTitle("Applet Frame");
    frame.getContentPane().add(applet, BorderLayout.CENTER);
    applet.init();
    applet.start();
    frame.setSize(400, 420);
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } });
    static {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    e.printStackTrace();
    And code of the html file :
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <HTML>
    <TITLE>
    HTML Applet Test Page
    </TITLE>
    </HEAD>
    <BODY>
    <SCRIPT LANGUAGE="JavaScript"><!--
    var info = navigator.userAgent; var ns = false;
    var ie = (info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0
    && _info.indexOf("Windows 3.1") < 0)
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var _ns = (navigator.appName.indexOf("Netscape") >=0
    && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0
    && java.lang.System.getProperty("os.version").indexOf("3.5") < 0)
    || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
    //--></SCRIPT></COMMENT>
    pack_applet.Capplet will appear below in a Java enabled browser.<BR>
    <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" codebase="HTTP://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"> <NOEMBED><XMP>');
    else if(_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.2" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" java_CODE = "pack_applet.Capplet" java_CODEBASE = "Capplet.class" "x" = "0" "y" = "1" pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"> <NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET CODE = "pack_applet.Capplet" CODEBASE = "Capplet.class" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" >
    </XMP>
    <PARAM NAME = CODE VALUE = "pack_applet.Capplet" >
    <PARAM NAME = CODEBASE VALUE = "Capplet.class" >
    <PARAM NAME = NAME VALUE = "TestApplet" >
    <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.2">
    <PARAM NAME = "x" VALUE = "0">
    <PARAM NAME = "y" VALUE = "1">
    </APPLET>
    </NOEMBED></EMBED></OBJECT>
    </BODY>
    </HTML>
    Thank you very much.

    you can load your pdf into your browser using
    navigateToURL(new URLRequest("yourpdf.pdf"));

  • JSF seems not to support the use of the back buttons and html frames.

    I�m having the following problem. I have a JSP which contains a button that register a listener. Here is part of the code:
    <h:command_hyperlink label="<%=engineBean.getId()%>" commandName="<%=engineBean.getId()%>">
    <f:action_listener type="helloDuke.CommandAction"/>
    </h:command_hyperlink>
    This action listener only forwards the request to other simple JSP.
    The problem appears in the following situation:
    1 � I click in the button that generates the event that will be processed by helloDuke.CommnadAction listener.
    2 � It forward to a second JSP page.
    3 � This second page is rendered to the user properly.
    4 � The user clicks in the browser�s back button to return to previous page.
    Then if is the user clicks in first page button, the CommandAction listener was removed. You must click again in the button to forward to the correct page.
    The same happened if you are using html frames. If you have a frame with 2 pages and both pages register action listeners.
    The last loaded page cleans the actions listener of the other.
    Does anybody have any solution?.
    It seems JSF doesn�t support the use of frames and I think that in some situation the frames are the solution to several problems.
    Any help will be really appreciated.

    Using the saveStateInClient=true produces a faulty output when using the command_button and an action_listener. The page that is rendered is totally useless: the button won't work, and due to the faulty rendering there's an output like: >com.sun.faces.saveStateMarker
    So, why is it, that pressing the button (not using the saveStateInClient option) will only work the second time, same thing pressing the backbutton. Pressing the reload button will toggle between two pages - the one before the session id is assigned and the one that it's supposed to show.
    Any guess will be greatly appreciated !!!!

  • Java Applet in a HTML page: failing with PLS-00306: wrong number of args

    We are trying to use a Java Applet in a HTML page. as our system needs to be able to retrieve a predefined set of data from a third party system that uses Dynamic Data Exchange Protocol (DDE) and are encountering errors from APEX and in IE itself.
    We are using JavaDde from www.nevaobject.com that enables our Java applet to interact with Windows applications (Third Party System) using DDE.
    This functionality is currently used in our Web Form 6i application and we are trying to use the same in the new ApEx application.
    We are using ApEx version : 2.1 and actually aer encountering 2 problems:
    Problem 1: ApEx failing with PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    Problem 2: IE crashes if Applet used in a complex page with several regions (1 Context, 4 Report Regions, 2 level Tabs, Links)
    This problem does not occur in the page where there is only applet and one region. In the case of complex page the IE crashes if the page is reloaded
    Test scenario:
    1- Create a simple page with the HTML region.
    2- Define the Source of the above region as follows
    <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#version=1,4,0,0"
    WIDTH="1"
    HEIGHT="1"
    ID="simpleApplet"
    NAME="simpleApplet">
    <PARAM NAME="code" VALUE="simpleApplet.class" >
    <PARAM NAME="archive" VALUE="simpleApplet.jar" />
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
    </OBJECT>
    3- Create a simple Java applet "simpleApplet" - for the test its enough if the applet will have just the init method printing out the mesage to the console
    4- Create a Submit Button (not redirect) in Region Header and create unconditional (do not set When Button Pressed property) Page Branch to navigate to another page (the page without the applet)
    6- Run the page and Submit -
    The error below is returned by the engine:
    In our case our applet is called ddeApplet - I do not know why is ApEx passing the Applet's ID down to the wwv_flow.accept method as a parameter
    Tue, 24 Jul 2007 08:15:39 GMT
    ORA-06550: line 7, column 2:
    PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    ORA-06550: line 7, column 2:
    PL/SQL: Statement ignored
    DAD name: rbdev2_ax
    PROCEDURE : wwv_flow.accept
    URL : http://castor:7778/pls/rbdev2_ax/wwv_flow.accept
    PARAMETERS :
    ============
    P_FLOW_ID:
    147
    P_FLOW_STEP_ID:
    500
    P_INSTANCE:
    6986070096861669560
    P_PAGE_SUBMISSION_ID:
    1005758
    P_REQUEST:
    CRASH
    P_ARG_NAMES:
    100380029717786501
    P_T01:
    147
    P_T02:
    101
    P_T03:
    5000044
    P_T04:
    1
    P_T05:
    S
    DDEAPPLET:
    Ddeapplet[panel0,0,0,1x1,layout=java.awt.BorderLayout,rootPane=javax.swing.JRootPane[,0,0,1x1,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=385,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
    P_MD5_CHECKSUM:
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_fastcgi/2.2.10 mod_perl/1.25 mod_oprocmgr/1.0
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=7778
    SERVER_NAME=castor
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/pls/rbdev2_ax/wwv_flow.accept
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=192.168.66.169
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=661
    HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    HTTP_HOST=castor:7778
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=ISCOOKIE=true; LOGIN_USERNAME_COOKIE=rdanko; ORACLE_PLATFORM_REMEMBER_UN=RDANKO:ngrb; WWV_FLOW_USER2=70FBB00945FE46B9; V6_AUTHENTICATION_COOKIE=70FBB00945FE46B9
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://castor:7778/pls/rbdev2_ax/f?p=147:500:6986070096861669560:::::
    HTTP_SOAPACTION=

    "theArrow",
    It looks like whatever HTML you're including on your page is creating HTML input form elements inside the HTML form "wwv_flow". This form is posted to wwv_flow.accept, and of course, the PL/SQL procedure wwv_flow.accept doesn't know anything these additional arguments/form elements you're attempting to POST.
    Joel

  • How to load an applet in a swing frame?

    Hi All,
    Can any one tell how to load a HTML applet in a Swing frame, I have a requirement where in the swing frame must contain a HTML applet.
    Thanks in advance...
    Panneer.

    Panneerselvam wrote:
    Can any one tell how to load a HTML applet in a Swing frame, I have a requirement where in the swing frame must contain a HTML applet.You don't. The requirement reeks of the ridiculous.
    Also, what is an "HTML" applet and how is it different from a regular applet or JApplet? I feel a case of jargonitis coming on.

  • Applet reloading twice

    I'm running an applet in a side frame in Netscape 4.04 browser. When I kick the HTML page off with the browser closed, the applet appears to start twice, with both running concurrently. This causes it to fall over because both try to write to the same file at the same time.
    When I open the browser first and then open the HTML page it loads normally.
    Does anyone know why, or has anyone experienced this problem? I'm using JRE 1.2.2.

    Thanks for the help. If anyone's interested:
    Two applets started after double-clicking under Communicator under Windows
    Description: Double-clicking an HTML file to start Communicator and load JET 3270 under Windows results in two JET 3270 applets running.
    Cause: The default "open" action performed by Windows when opening an HTML file when Communicator is the default browser passes the file both as a command line argument and as a DDE message. Because of this Communicator loads the HTML page twice, resulting in two JET 3270 applets.
    Corrective Action:
    Edit the default open action so that it does not use DDE using the following instructions. Start Windows Explorer. From the View menu select Options. Select the File Types tab. Find Netscape Hypertext Document in the list of registered file types, select it and click Edit. Select the open action and click Edit. Remove the tick from the Use DDE checkbox. Click OK, Close and Close.

  • Use of HTML Frame Pages

    If I want have an embedded Forms Applet (Forms 9i Services) as part of an HTML Frames Page (for a typical web portal look), is it possible .
    If possible , can anybody suggest the workaround.
    Regards,
    Gaurav Srivastava

    If use of Frames HTML Pages is possible with Forms 9i , where should be the <FRAME> tag inserted, in the base html files ? Or some separate arrangement should be done. Please do advice.
    Regards,
    Gaurav Srivastava

  • HTML Frames not using custom scrollbar in Flex 3 mx:HTML

    I've been working on an app that uses a custom skin in Flex 3. The app has a help window. The help contains an HTML with frames. Problem is, the main app vertical scrollbar custom skin is being ignored for the HTML Frames scrollbar (what looks like the classic version of Halo - maybe). This only happens with frames. It happens no matter how or where I place my HTML or HTMLLoader. If I dont have frames the custom scrollbar is used. Is there a node im missing in my skin css (obviously not VScrollBar or ScrollBar - the two standard used by Flex)? or some other way to connect the HTML Frames scrollbar to my custom skin.
    I'm not a noob but not an expert.
    Thanks.
    See attached image for example.

    Take the code of the jsp file :
    <%@ page language="java" %>
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
    <html>
       <head>
         <title> First Struts Application </title>
       </head>
         <body>
            <table width="500" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td> </td>
            </tr>
            <tr bgcolor="#36566E">
              <td height="68" width="48%">
                <div align="left">
                  <img src="images/hht.gif" width="220" height="74">
                </div>
              </td>
            </tr>
            <tr>
             <td> </td>
            </tr>     
           </table>
           <html:form action="Lookup"
                      name="lookupForm"
                      type="wiley.LookupForm" >
           <table width="45%" border="0">
            <tr>
              <td>Symbol:</td>
              <td><html:text property="symbol" /> </td>
            </tr>
             <tr>       
              <td colspan="2" align="center"><html:submit/> </td>
             </tr>       
            </table>              
          </html:form>
         </body>
    </html>

  • Session timeouts for login page with in a html frame

    Hi, i have a login page which when the session times out gets redisplayed within the frame of the html page where the session timed out , i have tried setting the session timeouts to be less than the other application so that the login page will timeout before the documentum application but this does not make a difference.
    does any one know how i could get the login page to redisplay by itself, outside of the html frame. do i need to have some javascript to figure out if there is a frame then redraw the page etc...and how should i di this ? any working examples will be appreciated.

    You would certainly need some Javascript or use the meta-refresh tag to the session timeout time. If you set the meta-refresh tag in a frame to a time just a little bit bigger than the session timeout time and the set your security mechanisms to force the user to login in again when the session times out, the frame will refresh after the session has timed out and the application should forward the frame to the login page.
    <meta http-equiv="refresh" content="session-timeout-timeout+1">
    (timeout time is in seconds)

  • How do I get my music, photo's, bookmarks, etc files back after the HTML Framer virus whiped them out ?

      AVG said I had the HTML Framer virus when I did a scan as I lost everything, even had to reinstall IE and Google Chrome, emails etc. Downloaded everything over but lost my photo's, bookmarks, movies, music, etc. there is about 10% free space on
    disk C and 75% free space on disk D so is my info still there and can I retrieve it some how ? 

    If these tracks are from Apple you can probably download them a second time.  If they are from some other source you will have to refer to that source.
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud and iTunes Match Availability by Country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this).  Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones, audiobooks), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the iTunes Store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • How to bring Login.jsp under a html frame ?

    hi all.
    I have customized the Login.jsp and actually have lot of static content to be displayed in our proposed entry page.
    I decided to use Html frames - something like the one below.
    When i point on the frame to the Login.jsp ( i referred it as 'amserver/UI/Login') --> it loads all frames then redirects the page to the /amserevr/UI/Login -> the Login.jsp now occupies the entire screen and i c none of the html frames..
    any idea how to bring in the portal Login.jsp under a html frame ?
    Thanks
    Vee
    <html>
    <frameset noresize="noresize" frameborder=0 rows="25%,70%,5%">
    <frame frameborder=0 noresize="noresize" src="/amserver/UI/Login" name="banner_frame" scrolling=no>
    <frameset frameborder=0 noresize="noresize" cols="30%,70%">
    <frame frameborder=0 src="./images/menus.gif" name="menu_frame" scrolling=no>
    <frame frameborder=0 src="./images/content.gif" name="content_frame" scrolling=no>
    </frameset>
    <frame frameborder=0 src="./images/copyright.gif" name="copyright" scrolling=no>
    </frameset>
    </html>

    is it possible to write jsp code or javascript code inside this Login.jsp ?
    I got a bunch of content - menu driven to displayed additional to the identity server login module.
    veera

  • Applet in an html invoking other classes

    I have an applet in an HTML page, invoking a another class, it doesn't work, do we have to include the classes as a jar, & reference it inside the HTML?

    A JAR file could be referenced in an html with the ARCHIVE attribute of the <APPLET> tag.
    <APPLET CODE="AppletSubclass.class" ARCHIVE="file1, file2"
         WIDTH=anInt HEIGHT=anInt>
    </APPLET>

  • How to display a alv using in a html frame?

    Hi,
      Is it possible to show a ALV grid in a html frame? Please suggest. Thanks in advance.

    hi,
    Refer this links, it will be helpful to you...
    https://wiki.sdn.sap.com/wiki/display/ABAP/ALVeasytutorial
    https://wiki.sdn.sap.com/wiki/display/ABAP/100%20abap%20questions
    https://wiki.sdn.sap.com/wiki/display/ABAP/Types%20of%20Reports
    Regards,
    Ahamed.

Maybe you are looking for