Applet parameters & netscape

I've got an applet running, but it seems
that if I run it with Netscape, the applet
is not receiving the parameters properly.
I can get them just fine with Internet Explorer or with appletviewer.
I only get the default values that are coded
into the java applet.
For example:
I have a parameter called url_link, that
I use to switch to another URL.
In the applet code, it's defined as:
url_link = this.getParameter("url_link", "");
In the HTML page, in the part
else if (_ns == true) document.writeln('<EMBED type="application/x-java-appl
et;version=1.2" WIDTH = 350 HEIGHT = 200 ALIGN = middle NAME = "Login" java_CODE
= "Login.Login" java_ARCHIVE = "jdev-rt.zip,classes12.zip,OpamicLib.jar,Login.j
ar" java_CODEBASE = ".." "url_link" = "success.html" pluginspage="http://java.s
un.com/products/plugin/1.2/plugin-install.html"> <NOEMBED><XMP>');
The <APPLET> tag contains:
<PARAM NAME = "url_link"
VALUE = "success.html">
In netscape I just get an empty string for
this parameter value unless I hard code
something different in the Java code, but
it never gets replaced by the parameter
that's specified in the HTML page.
So what do I have to do to make this work
with Netscape?
null

Well nobody replied to this one, so I had
to figure it out myself.
The JDeveloper tool puts all the parameter
names in the <EMBED> clause in quotes.
If those are removed, then it works fine
in Netscape.
So, replace
else if (_ns == true) document.writeln('<EMBED type="application/x-java-appl
et;version=1.2" WIDTH = 350 HEIGHT = 200 ALIGN = middle NAME = "Login" java_CODE
= "Login.Login" java_ARCHIVE = "jdev-rt.zip,classes12.zip,OpamicLib.jar,Login.j
ar" java_CODEBASE = ".." "url_link" = "success.html" pluginspage="http://java.s
un.com/products/plugin/1.2/plugin-install.html"> <NOEMBED><XMP>');
with
else if (_ns == true) document.writeln('<EMBED type="application/x-java-appl
et;version=1.2" WIDTH = 350 HEIGHT = 200 ALIGN = middle NAME = "Login" java_CODE
= "Login.Login" java_ARCHIVE = "jdev-rt.zip,classes12.zip,OpamicLib.jar,Login.j
ar" java_CODEBASE = ".." url_link = "success.html" pluginspage="http://java.s
un.com/products/plugin/1.2/plugin-install.html"> <NOEMBED><XMP>');
null

Similar Messages

  • Applet in Netscape

    My applet code is loading in Internet Explorer,But I have problem in loading the code in Netscape.Can any one suggest me how to load the applets in Netscape.
    --shiva                                                                                                                                                                                                                                                                                                                                           

    I am using IE 5.5 and Netscape 4.7.Plug in i am using is 1.3.I am sending the html file too.Thanks for replying.
    --shiva
    <HTML>
    <HEAD>
    <TITLE>Drawing Pad applet</TITLE>
    </HEAD>
    <body>
    <table border=1 width=405 height=505 >
    <tr valign=top>
    <td>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                   width="400" height="400" align="baseline"
                   codebase="http://<%=javaPluginServerPath%>/j2re1_3_0-win.exe#Version=2.4.1.0">
                        <PARAM NAME="code" VALUE="DServer.class">
                        <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
                        <PARAM NAME="cache_option" VALUE="Plugin">
                        <PARAM NAME="scriptable" VALUE="true">
                        <PARAM NAME="MAYSCRIPT" VALUE="true">
    </OBJECT>
    </td>
    </tr>
    </table>
    </body>
    </HTML>

  • Applets and Netscape 6!

    Hi there,
    I am not sure if this is the right forum to post my question. However, i saw some discussions reg. Applets on Netscape 6 and i guess that many of you might be familiar with the scenario.
    I'm having trouble getting any applets to work on Netscape 6 when I have HTTP authentication on the webserver enabled. The applet works fine under normal circumstances.
    Instead of loading the applet, I get a Java dialog box saying "Enter Network Password" and asks me to enter my username/password. This is a specific Java dialog box, complete with a picture of Duke, and it
    gives my firewall, digest and realm information.
    However, the dialog box doesn't accept my username/password, and doesn't
    display my applet.
    Here is what i captured on the Java console:
    ======= Default Browser Messages =========
    Java(TM) Plug-in: Version 1.3.0_01
    Using JRE version 1.3.0_01 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\hsivapatham
    Proxy Configuration: Browser Proxy Configuration
    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
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Trace level set to 5: basic, net, security, ext, liveconnect ... completed.
    Registered modality listener
    Referencing classloader: sun.plugin.ClassLoaderInfo@5256fa, refcount=1
    =========== Loading the Applet... ==========
    Added trace listener: sun.plugin.navig.win32.AppletPluginPanel[SpeedDial,0,0,300x295,invalid,layout=java.awt.BorderLayout]
    Sending events to applet. LOAD
    Determine if the applet requests to install any HTML page
    Sending events to applet. INIT
    Sending events to applet. START
    HTML Installation finished.
    ===== Not sure what this means? =========
    Determine if the applet requests to install any JAR
    Jar cache option: null
    Jar archive(s): null
    Jar cache version(s): null
    Applet Installation finished.
    ====================================
    Opening http://10.1.1.126:90/SpeedDialApplet.jar
    Connecting http://10.1.1.126:90/SpeedDialApplet.jar with no proxy
    ======= Puts up a dialog box asking for username and password ==========
    Firewall authentication: site=VAANI/10.1.1.126:90, protocol=http, prompt=xpressa, scheme=basic
    Modality pushed
    Modality popped
    User selected: 0
    Opening http://10.1.1.126:90/SpeedDial.class
    Connecting http://10.1.1.126:90/SpeedDial.class with no proxy
    java.lang.NullPointerException
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         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)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.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)
    </code>
    Thanks for your help.
    Priya

    oops, i forgot to add this, can u tell me what speeddial.class is trying to do?
    i belive u r making a url connection in that class and u got a null exception.
    if u r indeed making a urlconnection, be sure to include the basic authentication in the headers. here is a sample
    String basicAuth = Base64Coder.base64Encode("username:password");
    basicAuth = "Basic " + basicAuth;
    java.net.URL url = new java.net.URL(strUrl);
    java.net.HttpURLConnection con = (java.net.HttpURLConnection) url.openConnection();
    con.setRequestProperty("Authorization", basicAuth);

  • Applet in Netscape question.

    Hi, Applet in Netscape question.
    When an applet is run by Explorer everything is OK when trying to run with Netscape (7.1) nothing happening
    What is wrong here ???
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "730" HEIGHT = "260"
    codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-
    windows-i586.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = "Xaaa.class" MAYSCRIPT>
    <PARAM NAME = ARCHIVE VALUE = "Ybbb.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
    <PARAM NAME="scriptable" VALUE="false">
    <PARAM name="progressbar" value="true">
    </OBJECT>
    Thank you in advance !

    Dear Experts.
    Reading through previous Forum similar questions, I changed the code (down below)
    Now I receive the message:
    Click here to get the plugin
    This is encouraging because before Netscape ignored the applet completely ...
    However I already have plugin version 1.4.2_03 installed (and recognized by Explorer)
    The question is still why the applet is not working with Netscape ?
    Thank you in advance for your help?
    <html>
    <body>
    <!-- HTML CONVERTER -->
    <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 = 730 height = 260 >
    <param name = CODE value ="Xaaa.class" >
    <param name = ARCHIVE value ="Ybbb.jar" >
    <param name =" type" value =" application/x-java-applet;jpi-version=1.4">
    <param name =" scriptable" value =" false">
    <param name="progressbar" value="true">
    <comment> </comment>
    <embed
    type =" application/x-java-applet;version=1.4"
    code =" Xaaa.class"
    archive ="Ybbb.jar"
    width = 730
    height =260
    scriptable = false
    pluginspage =" http://java.sun.com/products/plugin/index.html#download">
    <noembed> alt="Your browser understands the <APPLET>
    tag but isn't running the applet, for some reason."
    Your browser is completely ignoring the <APPLET>
    tag! </noembed> </embed> </object>
    <!--"END_CONVERTED_APPLET"-->
    </html>
    </body>

  • Reading Applet Parameters

    Hello,
    this may appear to be stupid question but I need a solution anyway. My problem consists of two parts:
    Part1:
    Applet-Parameters which are set in the HTML-Applet Tag in
    <param name="name" value="value"> are read from within the applet by using getParameter("name"). The documentation says that a String is returned.
    Part2:
    When I want to set the text of a JTextArea I use the setText("someText") method. If I set the text by setText("Test\nTest") the Text is set with two lines each containing one "Test" (this is what the \n is for) like this:
    Test
    Test
    Now if I do the same by using setText(getParameter("name")) and the "name" parameter's value is "Test\nTest" my Text will exactly appear as
    "Test\nTest"
    in the Textarea.
    Does anyone know of this problem?

    Yeah this is a possiblity I have thought of as well. But this appears to me to be a Java bug, because a String is a String, right? And if I do a setText("someString") it should always behave the same way, no matter where the string comes from, whether read from an applet-parameter or whatever. It's a bit strange.
    Thanks for your help
    Best regards

  • Java Applet crashes Netscape upon Exit?

    Hello, I created an Applet that I am opening in NEtscape. When I make an attempt to exit (i.e. destroy) the APplet, it crashes the whole netscape. It even happens within Netscape 7. Is there a way around this since it makes a big problem for me to use the applet if it is going to crash my Netscape browser. I`ll appreciate any suggestions or comments, thanks Ivan

    The main class that everything is in is called GUI.java and it is a frame. In order to open this as an Applet in netscape, I created a GUI_RMIApplet.java file. And The GUI_RMIApplet.html file opens the GUI_RMIApplet.java file which in return opens GUI.java. The exit call is in GUI.java file.
    The html file code is as follows:
    <EMBED type="application/x-java-applet;version=1.3" CODE = "musr.client.gui.GUI
    _RMIApplet.class" CODEBASE = "." ARCHIVE = "jar/musr.jar" NAME = "MUSR GUI APPLE
    T" WIDTH = 400 HEIGHT = 300 ALIGN = middle VSPACE = 0 HSPACE = 0 UBBoption = "de
    velop" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/pl
    ugin-install.html">
    <NOEMBED>
    The GUI_RMIApplet.java code is:
    package musr.client.gui;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import musr.server.*;
    public class GUI_RMIApplet extends Applet {
    boolean isStandalone = false;
    String message = "The application will launch in a separate window";
    GUI_RMIServer obj = null;
    /**Get a parameter value*/
    public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
    (getParameter(key) != null ? getParameter(key) : def);
    /**Construct the applet*/
    public GUI_RMIApplet() {
    /**Initialize the applet*/
    public void init() {
    try {
    jbInit();
    } catch (Exception e) {
    System.out.println("GUI_RMI exception: " + e.getMessage());
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() {
    // Main bulk for this applet
    GUI gui = new GUI();
    gui.setVisible(true);
    public void paint(Graphics g) {
    g.drawString(message, 25, 50);
    /**Get Applet information*/
    public String getAppletInfo() {
    return "Applet Information";
    /**Get parameter info*/
    public String[][] getParameterInfo() {
    return null;
    //static initializer for setting look & feel
    static {
    try {
    //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    catch(Exception e) {
    And, the GUI.java class calls these funcitons when exit menu button is selected:
    GUI.this.dispose(); // disposes the frame
              System.exit(-1); // disposes the applet (?or not?)
    I think the System.exit button is messing things up but I don't know what other function I can use to close teh applet.
    Hope this is enough information.

  • Persistent applets in Netscape 7.x

    When I run my applet in Netscape 4.x,navigating to a different page cause my applet to get a stop() call, then pressing the "Back" button the applet gets a start() and I can resume the work. All the sockets are still open. Using the same applet in Netscape 7.x, I get a destroy() call and all the sockets are shutdown. This makes it impossible for me to resume my session when pressing the "Back" button.
    Is there a way to instruct the browser not to destroy the applet when the page is not visible?

    Is destroy overrideable? If so, just return from it.It's too late. I just get some exceptions and my sockets are closed. I need to avoid calling destroy() at the first place.

  • Rewriting java applet parameters

    I am attempting to get a java applet to work through the portal. Of
    course it
    does not work "out of the box" The applet is a menuing applet and it
    gets is
    text for the menu options (and the associated links) from the applet
    parameters. I have read the documentation for this and, in typical Portal
    Server documentation fashion, it has been less than helpful.
    Here are the details: The asp page that loads the applet is loaded from
    /menu/menu.asp Here is the HTML that loads applet and sets some of the
    parameters:
    <td><APPLET name='1' code='imgMenu.class'
    codebase='class/'height='17' width='124' id=Applet1>
    <param name='xloc' value='0'>
    <param name='yloc' value='17'>
    <param name='upimage' value='/menu/images/bbusinessunit.gif'>
    <param name='placement' value='right'>
    <param name="item1" value="0|ACT - Alaska Consolidated Team">
    <param name="item2" value="1|ACT Home">
    <param name="URL2" value="http://alaska.somewhere.com/act|_top">
    <param name="item3" value="1|ACT Badami">
    <param name="URL3" value="http://alaska.somewhere.com/cns_badami|_top">
    <param name="item4" value="1|ACT Endicott">
    I configured the rewriter like this:
    /menu/menu.asp imgMenu.class upimage
    /menu/menu.asp imgMenu.class URL*
    so that the upimage parameter would be rewritten as well ad the URL*
    parameters (there are URL1 all the way to URL53). This does not work.
    Has anyone gotten the Java applet paremeters rewriting working? If so,
    what I am I missing?
    Kent
    "For everything there is a season, and a time for every matter
    under heaven: ... a time to love, and a time to hate; a time
    for war, and a time for peace."
    -- Ecclesiastes 3:1,8

    sig and J.C. Westin-
    I used the Adobe Flash UNinstaller, and then installed Adobe Flash Player v10.0.12.10. No improvement/it did not correct the problem. Power E*Trade Pro (a Java Applet) still won't start properly (since Apple Software Update installed Java Release 7).
    I even did all the Repair Permissions steps before and after Flash UNinstal/reinstall (suggested by J.C. Westin; even though they did seem somewhat excessive; Note: all permissions were set properly before installing; Permissions DID need repair AFTER installing Flash; guess that Adobe doesn't get the permissions right in it's own installer!).
    To be honest, I did not really place much hope in solving the problem via an update to a BETA version of Flash. The problem occurred when I updated Java (per Apple's Software Update), not when doing anything with Flash. More to the point, I don't believe the Java applet that's having problems now uses Flash at all. Placing hope in a Flash BETA seemed to me like being told to replace my brake fluid after complaining the engine wasn't running.
    I'm (still) looking for a (non-draconian) way of reverting back to Java Release 6. Someone has to have some steps for trashing specific files/binaries to Remove Java Release 7, then installing the full Java Release 6 anew. Please? Anyone? Trashing the entire OS then performing a clean install is a huge amount of work. I just need to trash Java Release 7.
    Thanks in advance to anyone who can help here.

  • Missing Applet parameters in Mozilla (work on IE)

    I'm developing an applet which is invoked by the generalised auto plugin load HTML as recomended by sone. The applet (such as it is) runs on both IE and Mozila but, in the Mozilla case, none of my parameters seem to make it through despite sitting next to the plugin ones.
    I just get null from getParameter();
    BTW how do you persuage IE to load a new version of the applet these days? Used to be Alt-reload but this doesn't seem to do the job with the Sun plugin.

    Horrible:-
    <h4>In order to function this page requires the Sun java plugin, which it should
    fetch automatically.</h4>
    <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));
    //--></SCRIPT></COMMENT>
    <script LANGUAGE="JavaScript1.2"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA"\n' +
    'width="400" height="400" align="baseline"\n' +
    'codebase="http://java.sun.com/products/plugin//jinstall-1_4_2-windows-i586.cab#Version=1,4,2,0">\n' +
    '<NOEMBED><XMP>');
    else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;jpi-version=1.4.2"\n' +
    'width="400" height="400" align="baseline" code="org.igis.applets.FeatureEditor" codebase="/data/code/" archive="applet.jar"\n' +
    'pluginspage="http://java.sun.com/update/1.4.2/j2re-1_4_2_04-windows-i586.xpi"><NOEMBED><XMP>');
    //--></SCRIPT>
    <applet code="org.igis.applets.FeatureEditor" codebase="/data/code/ archive="applet.jar align="baseline"
    width="400" height="400">
    </xmp>
    <param NAME="java_code" VALUE="org.igis.applets.FeatureEditor"/>
    <param NAME="java_codebase" VALUE="/data/code/"/>
    <param NAME="java_type" VALUE="application/x-java-applet;version=1.4.2"/>
    <param NAME="java_archive" VALUE="applet.jar"/>
    <param NAME="context" VALUE="/leeds/malcolmm"/>
    <param NAME="path" VALUE="admin2"/>
    No Java 2 SDK, Standard Edition v 1.3 support for APPLET!!
    </applet></noembed></embed>

  • Applet Parameters For Animated Gif Using AWT

    I need to have my applet except parameters to change from one type of animated gif (dog) to another animated gif (cat). There are two for each animal. If the animal parameter is "dog" the dog1.gif and the dog2.gif will be used for the animation. I'm not too sure on how to go about this.
    private String sDog;
    private String sCat;
    sDog = getParameter("");
    if (sDog.equalsIgnoreCase("dog"))
    How do I add both gifs in the control statement?
    Thanks so much,
    Jeff

    private String sDog;
    private String sCat;
    sDog = getParameter("dog");
    for(int i=1;i<3;i++){
    if (sDog.equalsIgnoreCase("dog" i".gif"))
    //code to display the gif
    remember your parameter should be <b>dog</b>

  • Reloading an applet closes Netscape 7.0 browser

    I'm loading an applet that loads an image web cam with JMF api. Everything works o.k. But after using the applet, if i go to another html page, loads it but the Netscape browser closes. I've looked at the Netscape java console and it gives me all these errors. Could anybody help me please, it's very urgent?
    I don't know how to solve this problem. Here's the code of my applet.
    import java.applet.*;
    import java.awt.*;
    import java.net.*;
    import javax.media.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AppletSound extends JApplet {  
         MediaLocator mySound=null;
         Player soundPlayer=null;
    Component auControlComponent = null;
         String audio=null;
         public void init()
              audio=getParameter("audio");
              getContentPane().setLayout(null);
              setSize(300,50);          
         // Check that we have a valid URL and create URL object to hold it.
              if(audio.equals(""))
                   System.out.println("*Please specify one URL to play*");
              else     
                   mySound=new MediaLocator(audio);     
    try {
              soundPlayer=Manager.createRealizedPlayer(mySound);
              catch(javax.media.CannotRealizeException cre){}
              catch(javax.media.NoPlayerException npe){}
              catch (java.io.IOException e) {
    System.out.println("IOException...exiting.");
    //System.exit(1);
    if (soundPlayer == null) {
    System.out.println("soundPlayer is null...exiting.");
    // System.exit(1);
              auControlComponent=soundPlayer.getControlPanelComponent();          
              if (auControlComponent!=null)
              getContentPane().add(auControlComponent);
              auControlComponent.setBounds(5,5,295,40);
    validate();
         public void start()
              if(soundPlayer!=null)
              soundPlayer.start();
    public void stop()
    soundPlayer.stop();
         soundPlayer.deallocate();
    Here are the errors that I get from the Java Console:
    java.lang.NullPointerException
         at com.sun.media.rtp.RTCPTransmitter.makereports(RTCPTransmitter.java:225)
         at com.sun.media.rtp.RTCPTransmitter.report(RTCPTransmitter.java:129)
         at com.sun.media.rtp.RTCPReporter.run(RTCPReporter.java:215)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at com.sun.media.rtp.RTPEventHandler.dispatchEvents(RTPEventHandler.java:114)
         at com.sun.media.rtp.RTPEventHandler.run(RTPEventHandler.java:137)
    java.lang.InterruptedException
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.media.rtp.SSRCCacheCleaner.run(SSRCCacheCleaner.java:157)
         at java.lang.Thread.run(Unknown Source)
    Timer: timeLoop() wait interrupted java.lang.InterruptedException
    Timer: timeLoop() wait interrupted java.lang.InterruptedException
    MediaNode event thread java.lang.InterruptedException
    MediaNode event thread java.lang.InterruptedException
    MediaNode event thread java.lang.InterruptedException

    It's me again altairforodigital, as you can see in the source code of the applet I load sound not a web image. Sorry for that.

  • Applet On Netscape and IE

    We are building a shopping cart applet using jdk1.0.x
    When the user clicks on a submit button applet makes a connection to the server and waits for the server response. This piece of code makes a status message visible while the applet is waiting for server response.
    public boolean mouseDown(Event event,int x, int y)
    if (y >= 235 && y <= 260 && x >= 433 && x<= 511 )
    lMessage.setVisible(true);
    parent.SubmitInfo();
    parent.Confirmation(); // make next page visible
    return true;
    The message is visible in Netscape , but in IE (both in MAC and Windows) it does not show up.
    Does anyone have any ideas ?
    Thanks in advance
    Syama.

    Hi, Guess I should have given code sample. lMessage is a label and it is added to the panel.
    It does not display on IE but it displays on Netscape.
    public class Review extends Panel
    // members
    public Review(ECommerce _parent)
    // add size other components
         add(lMessage);
         lMessage.reshape(10,240,300,20);
         lMessage.setFont(parent.mFB);
         lMessage.setBackground(parent.bC);
         lMessage.setForeground(parent.mtC);
         lMessage.setVisible(true);
    // other methods none of them refer lMessage
    public boolean mouseDown(Event event,int x, int y)
         if (parent.submitOrder) return true;
         if (y >= 235 && y <= 260 && x >= 433 && x<= 511 )
              parent.submitOrder = true;
                             lMessage.setVisible(true);
         lMessage.requestFocus();
         repaint();
         parent.SubmitInfo();
         parent.Confirmation();
         parent.submitOrder = false;
         return true;
    May be it has something to do with jdk - we are using jdk 1.1.
    Thanks,
    Syama.

  • Creating signed Java applet for Netscape 4x

    I have created a signed jar with SuperUser privileges under Netscape.
    public void init() {
    try {
    if( Class.forName("netscape.security.PrivilegeManager") != null ) {
    netscape.security.PrivilegeManager.enablePrivilege("SuperUser");
    } catch( ClassNotFoundException cnfe ) {
    cnfe.printStackTrace();
    With this I am getting following error without any dailog prompting to grant permission.
    netscape.security.ForbiddenTargetException: User didn't grant the SuperUser privilege.
    Please help.
    Thanks
    Satish

    Then it's likely Netscape 4.x doesn't recognize the jar as being signed. How did you sign the jar?
    Why didn't you ask this in the more appropriate Signed Applets forum?

  • Problem binding applet parameters

    Hi,
    I need to pass dynamically generated parameters to applet in ADF Faces page. I need something like this: <applet><param name="n1" value="#{...}"/>. But parameter value doesn't support EL. How can I walk arround this?
    Thanks,

    I have the same problem. In the contrived example below my applet will only work if the EL statement #{row.email} actually gets resolved to the database value, but at the moment the EL text is what is ending up in the applet parameter value. Any further assistance on this would be greatly appreciated.
    <af:column headerText="#{bindings.DepartmentsdepartmentCollection.labels.email}"
    sortable="false" sortProperty="email"
    binding="#{backing_deptEmp.column2}" id="column2">
    <af:outputText value="#{row.email}"
    binding="#{backing_deptEmp.outputText2}"
    id="outputText2"/>
    <f:verbatim>
    <jsp:plugin type="applet" code="com.atrium.agis.AGISApplet" archive="ATRIUMgis.jar"
    height="500" width="750">
    <jsp:params>
    <jsp:param name="method:init" value="'#{row.email}','basemap','http://192.168.10.8/mapviewer/omserver',524966,322570, 750, 400, 81989, 'devplan_jdbc_datasource', 1250,'http://atriumdev/mapviewer/watermark.gif'" />
    </jsp:params>
    <jsp:fallback> This browser does not support Applets. </jsp:fallback>
    </jsp:plugin>
    </f:verbatim>
    </af:column>

  • Java Applets in Netscape with EMBED   tag

    Hi,
    I tried to run the examples on the:
    http://192.9.48.9/products/plugin/1.3/demos/applets.html
    Demo paged off of the plug page and in Netscape 4.08 it
    does not know there is a plugin , in Netscape 6.0
    it knows there is a plug in but won't use the one installed on the machine (1.3.1) which is the same level as the demo.
    Any clues how to get applets to use the Java Plugin with Netscape? This works fine in IE
    Thanks!
    BTW- I'm using NT 4.0 os.

    Probably 1.3.1 conflicts with 1.3.1_01 or 1.3.1_02.
    You need the HTML Converter from the Java PlugIn download page to make your page ready for Netscape 4.x. Go to http://java.sun.com/products/plugin/1.3/converter.html (Java Plug-in HTML Converter Download) to download your copy of the HTML Converter. Watch for the current version, it is 1.3, not 1.1.1.
    Download your page, strip out the <embed/> and <object/> elements, uncomment the <applet/> element and run the HTML Converter.
    Additional Information:
    Netscape 6 does not use the <embed/> element anymore since it isn't a html element but was a proprietary netscape tag. Netscape 6 uses the <object/> element like Internet Explorer and Opera.
    Another note on <embed/>:
    Use of <embed/> is strongly discouraged, but there's no other chance. Let's hope support for Netscape 4.x won't be neccessary any more in a few months.
    A note on <applet/>:
    The <applet/> element is deprecated since HTML 4.01 or earlier (http://www.w3.org/TR/html401/struct/objects.html Objects in HTML 4). One should use the <object> element instead anyway. The semantic description of html elements found in the technical report of the html 4.01 recommendation is still valid for current html versions of today (XHTML 1.1 and XHTML Basic 1.0).
    There's also a funny page of Sun about HTML: http://java.sun.com/products/plugin/1.3/docs/tags.html. Don't take that page too serious since it states it is talking about HTML, but it isn't.
    If you use the HTML Converter, be sure to use the Extended (Standard + All Browsers/Platforms) template to tell Netscape, Opera and Internet Explorer regardless of the used version to display the applet correctly. But watch out: the generated code is not HTML and will perhaps even crash your page in Internet Explorer 6 and browsers that rely on the HTML standard! It also won't work with Netscape 6 if there is a different version of the Java Plugin installed more recently than the requested. I have SDK 1.3, 1.3.1 and 1.4 installed, and Netscape 6 wants to download the 1.3.1 Plugin.
    The best way to make your applet work in really every browser is to study what the converter is trying to do and code it by yourself in a conformant way. Be sure not to tell the browser the Plugin version to use to avoid the neccessarity of downloading outdated plugins and installing several plugins (1.2, 1.2.1, 1.2.2, 1.3, 1.3.1, 1.3.1_01, 1.3.1_02, 1.4...).

Maybe you are looking for