Displaying Applet in JSP Using jsp:plugin tag

The following code is not working eventhough i downloaded to JRE plug-in .Please help me to work the
following code in JSP.
<jsp:plugin code="mani.Clock2.class"
codebase="/classes/" width=300 height=300
jreversion="1.3"
nspluginurl="http://java.sun.com/products/plugin/1.1.3/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<jsp:fallback>
<font color=#FF0000 size=10>Sorry Error While Loading Applet </font>
</jsp:fallback>
</jsp:plugin>

why don't ypu just use the <applet> tag?

Similar Messages

  • Expressions not evaluating properly in jsp:plugin tag

    Hi there, running OC4J as Oracle9iAS (1.0.2.2.1)
    In the JSP1.1 spec dynamic expressions in the jsp:plugin <param> tag are clearly specified as below:
    <jsp:params>
    [ <jsp:param name="parameterName" value="{parameterValue | <%= expression %>}" /> ]+ </jsp:params>
    Unfortunately, attempting this in OC4J, the expression is simply displayed as a static String, for example the following JSP source:
         <jsp:params>
              <jsp:param name="rootSubAssembly" value="<%=rootSubAssembly%>" />
         </jsp:params>
    Would output "<%=rootSubAssembly%>" as the parameter value, rather than the dynamic value specified in the JSP above.
    Any ideas? We'd like to benefit from using the plugin tag over object/applet if at all possible.

    Hi there, running OC4J as Oracle9iAS (1.0.2.2.1)
    In the JSP1.1 spec dynamic expressions in the jsp:plugin <param> tag are clearly specified as below:
    <jsp:params>
    [ <jsp:param name="parameterName" value="{parameterValue | <%= expression %>}" /> ]+ </jsp:params>
    Unfortunately, attempting this in OC4J, the expression is simply displayed as a static String, for example the following JSP source:
         <jsp:params>
              <jsp:param name="rootSubAssembly" value="<%=rootSubAssembly%>" />
         </jsp:params>
    Would output "<%=rootSubAssembly%>" as the parameter value, rather than the dynamic value specified in the JSP above.
    Any ideas? We'd like to benefit from using the plugin tag over object/applet if at all possible.

  • Is Tomcat 4's jsp:plugin tag hardwired to 1.2?

    Is Tomcat 4's <jsp:plugin > tag hardwired to version 1.2 of the JPI?
    I was absolutely horrified today at a job interview when, proudly navigating to the page containing the 1.4-demanding applet I embedded in the page using <jsp:plugin ...> the plugin installation dialogue came up -- asking whether they wanted to install the 1.2 plugin (up until recently, I had the applet's object tag embedded manually... switching to jsp:plugin was fairly recent).
    As it turns out, the <object> tag generated by Tomcat was specifying the download path for the 1.2 plugin, even though I specified jreversion="1.4" in the <jsp:plugin> tag:
    <OBJECT
       classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
       name="theApplet"
       width="550" 
       height="400" 
       align="middle" 
       codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">The "clsid" value can be changed in web.xml by changing the jsp servlet's "ieClassId" initParam, but as far as I can tell there's NO mechanism for changing the "codebase" value anywhere.
    Is the <jsp:plugin> tag (under Tomcat 4, at least) just useless for Applets that must have 1.4, or is there a configuration parameter somewhere to set the "codebase" value generated by the tag?
    I know I could always put the manually-specified code back in, but I'd prefer to stay with the <jsp:plugin> tag if possible just because it makes the jsp source cleaner. What's strange is that nobody seems to have complained about that problem on the usual places (Usenet/dejanews/Google, jguru.com, etc). Whether that's just because nobody writes applets that actually demand 1.4, or whether everybody who does just embeds the <object> tag manually, I'm not sure.
    In any case, I'm trying to figure out how to make <jsp:plugin> generate the right HTML for 1.4-using applets... or whether it's even possible.

    Sigh. I found it. It's actually specified as the "iepluginurl" property of the <jsp:plugin> tag.
    <emotion:frustration variation="anger">
    Now I just need to figure out what *$%!# value to use for it.
    The JPI's developer guide has to be the worst document I've ever seen from Sun. Normally, Sun's documents are good. Often, exceptionally so. But the JPI guide... well, after reading http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html multiple times, I'm still not sure what #$%^&* URL corresponds to "The newest released JPI equal to or newer than 1.4.0". The only URL on the whole page that they even imply works is hardwired to 1.4.0, and in the same breath they imply that every other codebase URL on the page is wrong, hypothetical, and shouldn't be used... oh, and for that matter, the 1.4_0 one shouldn't really be used ether, because it might change in the future. Grrrrr.
    If there's a pattern to the following URLs (all used on the same page) that's supposed to illustrate something besides abyssmally bad editing and apparent indecision, I haven't seen it yet:
    http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
    http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn
    http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,1,mn
    http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cabHmmm. Let's see here. They're all the same up to http://java.sun.com/products/plugin, but from that point one diverges into /1.4/, while the others continue into /autodl/. But even past that point, two imply that the filename follows the pattern jinstall-1_4-windows-i586.cab#Version=1,4,x,* ... but whether developers who really, truly, don't care about the specific maintenance release should use "0" or "mn" is left up in the air.
    Furthermore, the ONE URL on the entire page that they come halfway close to implying will work is the last one I listed above, which itself goes totally against whatever hypthetical pattern they were trying to imply with the other three. For now I'll probably stick the last one listed as the parameter because it's the only one they actually come out and say will work, but I suspect the first one is probably the "right" one.
    Of course, there's always the matter of Macintosh users running IE. Or Windows users running Mozilla (which is technically Netscape, but uses MSIE ActiveX plugins). Does Mozilla get fed the value of "iepluginurl", or the value of "nspluginurl"? Sigh.
    </emotion:frustration>

  • Weired behavior of jsp:plugin tag

    Hi.
    When I use <jsp:plugin type="applet".....></jsp:plugin> tag, jsp page shows a applet correctly in IE but not in mozilla(1.7). I've tried to solve this problem and found that if I use <applet></applet> tag it works fine both of them.
    Does anyone have idea? the reason of this, and isn't there anyway to use jps:plugin tag to work correctly in both browers?

    What version of Jdk are you using? The Java plugin is not consistent across browsers and browser versions.
    The jsp:plugin tag gets coverted to the OBJECT tag after compliation.
    Just go through this page to find out which tag suits your need.
    http://java.sun.com/products/plugin/versions.html
    This link might also be helpful to you.
    http://www.mail-archive.com/[email protected]/msg32719.html

  • JSP Plugin tag for applets with codebase - WLS 6.1 sp2

              Could someone please tell me what I am doing wrong?
              I have the following Plugin tag in my JSP.
              <jsp:plugin type="applet"
              code="com.xxx.efm.frontend.view.EFMApplet"
              codebase="/lib"
              archive="applets/EFMFrontend.jar, EfmCommon.jar, TrimmedWeblogic.jar, dom4j-full.jar,
              /classes/"
              jreversion="1.3"
              nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
              iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
                   <jsp:params>
                        <jsp:param name="Delimiter" value="<%=delimiter%>" />
                        <jsp:param name="ComponentMap" value="<%=componentMapValues%>" />
                        <jsp:param name="ServerConfig" value="<%=serverConfigValues%>" />
                        <jsp:param name="GUIConfig" value="<%=guiConfigValues%>" />
                   </jsp:params>
              </jsp:plugin>
              I am trying to load the JSP using Netscape 4.7. When I don't have a plug-in installed
              the page
              displays "Click here to get the plugin". On clicking on it the browser pops up
              a "Plugin not loaded" dialog.
              All this is fine except that the dialog says it can retrieve the plugin from "/lib".
              When I click on
              "Get the plugin" button the new browser window tries to load the URL: http://localhost:2002/lib/?application/x-java-applet;version=1.3.
              It totally ignores the netscape URL for plugin. Something similar happens with
              IE as well.
              I tried the same JSP without the codebase tag and all worked fine (except for
              my applets). Yeah, I can append a "/lib" to each of
              my jars in my archive and it just might work. But should I be doing anything different?.
              Any help is appreciated.
              Thanks,
              Gopal
              

    I am facing the same problem with netscape (4.7x). Gopal, did you find any
              solution?
              IE works fine for me. I use the foll pluginurl
              iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#V
              ersion=1,3,1,1"
              _Jp
              "Gopal" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Could someone please tell me what I am doing wrong?
              >
              > I have the following Plugin tag in my JSP.
              >
              > <jsp:plugin type="applet"
              > code="com.xxx.efm.frontend.view.EFMApplet"
              > codebase="/lib"
              > archive="applets/EFMFrontend.jar, EfmCommon.jar,
              TrimmedWeblogic.jar, dom4j-full.jar,
              > /classes/"
              > jreversion="1.3"
              >
              nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
              >
              iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"
              >
              >
              > <jsp:params>
              > <jsp:param name="Delimiter" value="<%=delimiter%>" />
              > <jsp:param name="ComponentMap" value="<%=componentMapValues%>" />
              > <jsp:param name="ServerConfig" value="<%=serverConfigValues%>" />
              > <jsp:param name="GUIConfig" value="<%=guiConfigValues%>" />
              > </jsp:params>
              > </jsp:plugin>
              >
              > I am trying to load the JSP using Netscape 4.7. When I don't have a
              plug-in installed
              > the page
              > displays "Click here to get the plugin". On clicking on it the browser
              pops up
              > a "Plugin not loaded" dialog.
              > All this is fine except that the dialog says it can retrieve the plugin
              from "/lib".
              > When I click on
              > "Get the plugin" button the new browser window tries to load the URL:
              http://localhost:2002/lib/?application/x-java-applet;version=1.3.
              > It totally ignores the netscape URL for plugin. Something similar happens
              with
              > IE as well.
              >
              > I tried the same JSP without the codebase tag and all worked fine (except
              for
              > my applets). Yeah, I can append a "/lib" to each of
              > my jars in my archive and it just might work. But should I be doing
              anything different?.
              > Any help is appreciated.
              >
              > Thanks,
              > Gopal
              

  • How can I return some values from an applet invoked by jsp:plugin tag

    My JSP is something like that:
    <html>
         <head>
                 <title> . . . </title>
         </head>
         <script>
              function getValueFromApplet()
                   var src = document.pinApplet.checkPin();
                   document.myForm.j_username.value = document.pinApplet.tokenizeName(src);
                   alert(document.myForm.j_username.value);
                   document.myForm.j_password.value = document.pinApplet.tokenizePassword(src);
                   alert(document.myForm.j_password.value);
         </script>
            <body>
                    <jsp:plugin type="applet"
                          code="PinApplet.class"
                       codebase="/idp"
                       name="pinApplet"
                                width="300"
                                height="300">
                         <jsp:fallback> Authentication Form is not supported by the browser </jsp:fallback>
              </jsp:plugin>
                    <form action="https://xxx.xxx.xxx"
                   name="myForm"
                   method="post" onSubmit="return getValueFromApplet()">
              <table>
                   <td><input type="submit" value="OK" >
                   <td><input type="hidden" id="j_username" name="j_username" value=""></td>
                   <td><input type="hidden" id="j_password" name="j_password" value=""></td>
              </table>
              </form>
         </body>checkPin() returns "alice--alice"
    tokenizeName() returns the first token: alice
    tokenizePassword() returns the second token: alice
    When I test the applet in the IDE, it returns the values properly, but not in the JSP invokation.

    evnafets wrote:
    javascript will not be executing on the server. You can rule that one out.
    Is your Applet being initialised correctly?
    Where have you got the classes for it? I think the applet doesn't need any kind of initialization, because it doesn't have any variables and all the process is made in the method called by onsubmit()
    The applet is composed only by one class and I'm totally sure that the class is placed in the correct place.
    evnafets wrote:
    I would say put in a couple more alerts - one before the call to the applet, one after.
    put some logging statements in your applet to see if it gets there.In the javascript, there are two alerts between the three calls to the applet. Where do you advise me to put more alerts?
    I don't understand what do you refer when you say "logging statements"
    I am going to test again the call to the applet in order to find some kind of code that can be invalid or that can make the function to "crash"

  • Is the jsp:plugin tag supported in Weblogic 5.1?

    I am running Weblogic 5.1 and I can't get the <jsp:pluging> tag to work.
              The server is not even translating the tag to anything usefull. When I do a
              'View Source' in the browser, the tag is exactly as I wrote it in the page.
              Is this feature supported in 5.1. I've tried the phonebook example and it
              doesn't work either. All my other JSP pages work just fine.
              Any help would be appreciated...
              Steven Carter
              Senior Software Developer
              VideoSpheres Inc.
              Office: 613-270-9646 Ext. 3025
              FAX: 613-271-9442
              e-mail:[email protected]
              

    Thanks for your response! Yes it was a typo in the message :). Would you have any idea why it is not working for me? Any special configuration required? A property I don't have correctly set in the properties file? I've tried the phonebook example shipped with the product and it doesn't work.
              "Kumar Allamraju" <[email protected]> wrote in message news:[email protected]..
              I never tested it myself. But i think we do support
              in 5.1 . Shouldn't it be <jsp:plugin>
              Was it a typo?
              Steven Carter wrote:
              I am running Weblogic 5.1 and I can't get the <jsp:pluging> tag to work.
              The server is not even translating the tag to anything usefull. When I do a
              'View Source' in the browser, the tag is exactly as I wrote it in the page.
              Is this feature supported in 5.1. I've tried the phonebook example and it
              doesn't work either. All my other JSP pages work just fine.
              Any help would be appreciated...
              Steven Carter
              Senior Software Developer
              VideoSpheres Inc.
              Office: 613-270-9646 Ext. 3025
              FAX: 613-271-9442
              e-mail:[email protected]
              [att1.html]
              

  • Error Displaying Mandatory community List using Adaptive data Tags

    Hi I want to list down all the mandatory community list but when i am using <pt:ptdata.mandatorycommunitiesdata pt:id="commmenu" /> tags it returns me no value.
    On the conterary the <pt:ptdata.mycommunitiesdata pt:id="commmenu" /> return me hte list of all the communities to which user has joined and once which are mandatory for the user.
    Is this the expected behavior if yes then how can we get the list of mandatory communties. The first preference will offcoure be using Tags if not at al possible then we can go about using API.
    I am unrgent ly looking for some solution. Any help in this regards is appriciated!!!
    -: Amresh

    This would only give the communities which are mandatory and exist as tabs.
    hmm..Not sure why that didn't work.
    I beleive the earlier tag doesn't exist anymore.This should help you though......It worked for me (6.5)
    <span xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
    <pt:ptdata.mandtabcommsdata pt:id="menutabs" />
    <table cellpadding="0" cellspacing="0" width="200" border="0">
    <tr>
    <td height="2" colspan="3">
    </td>
    </tr>
    <tr class="menuHeaderBg">
    <td align="left" valign="middle" height="20" colspan="3" class="navSidebarSectionHeader">
       My Communities
    </td>
    </tr>
    <!-- links to communities are entered here -->
    <pt:logic.foreach pt:data="menutabs" pt:var="temp">
    <tr class="navMidtabBg">
    <td height="16" colspan="2" class="navMidtabBtn">
    <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td height="20" width="100%" nowrap="nowrap" colspan="1" class="objectBtn">
    <span class="actionbarBanText">
    <pt:core.html pt:tag="img" src="$temp.img" alt="" border="0" align="absmiddle" height="20" width="20" />
    <pt:core.html pt:tag="a" href="$temp.url">
    <pt:logic.value pt:value="$temp.title" />
    </pt:core.html>
    </span>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </pt:logic.foreach>
    </table>
    </span>
    Edited by: ALUIDeveloper on Mar 19, 2009 12:40 PM

  • How to use jsp:plugin type="applet" in jsp

    Hi ,
    I have a JSP File.
    How to use jsp:plugin tag in that.
    When I specify the file name in code="applet.class" Then it is giving an error saying that It could not find the class.
    What is the solution for this.

    its not working.. it shows exception class not found exception.
    i have placed the jsp and applet class in the same folder. but its not working.
    jsp file path : OracleSpatial\mypackage\webmap.jsp
    applet class : OracleSpatial\mypackage\demoApplet.class
    demoApplet class inside package "mypackage".
    code inside JSP is :
    <jsp:plugin type="applet"
    code="mypackage.demoApplet.class" width = "100%" height = "100%" >
    </jsp:plugin>

  • Insert applet in jsp using plugin

    After adding an applet in a jsp,when trying to run the page it is showing the following error message
    < errorInvalidEscapeChar>
    As I don't know xml, I am using component palette for adding the Applet.
    The jsp tag is given below.
    <body><h:form binding="#{backing_untitled1.form1}" id="form1">
    <jsp:plugin type="applet" code="Applet1"
    codebase="C:\JDEV\SQC_APPLICATION\SQC_PROJECT\classes\sqc_project"
    align="left" height="200" jreversion="1.2" width="200"/>
    </h:form></body>

    Hi,
    the codebase reference causes the problem because in Java "\" is an escape indicator. Also, the code sample doesn't work unless you wrap the jsp:plugin tag in a <f:verbatim></f:verbatim> cosntruct
    Frank

  • JSP:Plugin and naming an applet

    Howdy,
    I am presently having good success with the jsp:plugin tag starting my applet.
    But, I can not seem to give the applet an ID or NAME in the <object> or <embed> tag.
    This is needed, as I am attempting to access the applet from javascript in the html page.
    my jsp:plugin tag looks like this:
    <jsp:plugin type="applet"
              code="Pi_saa/Plugin"
              codebase="/lms1/classes"
              name="AACPlugin"
              archive="/lms1/classes/Plugin.jar"
              height="100" width="100">
    <jsp:params>
    <jsp:param name="org.omg.CORBA.ORBSingletonClass" value="org.jacorb.orb.ORBSingleton"/>
    <jsp:param name="org.omg.CORBA.ORBClass" value="org.jacorb.orb.ORB"/>
    <jsp:param name="JacorbProxyServerURL"
    value="http://localhost:8080/lms1/classes/aaclms.ior"/>
    <jsp:param name="MAYSCRIPT" value="TRUE"/>
    </jsp:params>          
    <jsp:fallback>Oops! Cannot load AAC LMS Plugin</jsp:fallback>
         </jsp:plugin>
    The resulting html (netscape) looks like this:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="100" height="100" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
    <PARAM name="java_code" value="Pi_saa/Plugin">
    <PARAM name="java_codebase" value="/lms1/classes">
    <PARAM name="java_archive" value="/lms1/classes/Plugin.jar">
    <PARAM name="type" value="application/x-java-applet;">
    <PARAM name="org.omg.CORBA.ORBClass" value="org.jacorb.orb.ORB">
    <PARAM name="org.omg.CORBA.ORBSingletonClass" value="org.jacorb.orb.ORBSingleton">
    <PARAM name="JacorbProxyServerURL" value="http://localhost:8080/lms1/classes/aaclms.ior">
    <PARAM name="MAYSCRIPT" value="TRUE">
    <COMMENT>
    <EMBED type="application/x-java-applet" width="100" height="100" pluginspage="http://java.sun.com/products/plugin/" java_code="Pi_saa/Plugin" java_codebase="/lms1/classes" java_archive="/lms1/classes/Plugin.jar" org.omg.CORBA.ORBClass="org.jacorb.orb.ORB"
    org.omg.CORBA.ORBSingletonClass="org.jacorb.orb.ORBSingleton"
    JacorbProxyServerURL="http://localhost:8080/lms1/classes/aaclms.ior"
    MAYSCRIPT="TRUE"
    >
    <NOEMBED>
    </COMMENT>
    Oops! Cannot load AAC LMS Plugin
    </NOEMBED></EMBED>
    </OBJECT>
    If you fight your way through this, you can see that there is no ID or NAME for these tags. That means I cannot access the applet from javascript.
    Can anyone give me some help?
    Thanks
    Mark

    Cant you just use
    document.applets[0]
    if you have just an applet in your page....
    You can either use the name or an index as u do for any document property

  • How to deploy a JSP with jsp:plugin with applet type?

    Hi,
    I am a new comer for JSP and when to try to a simple JSP with plugin for applet. Following is part of my JSP script:
    <jsp:plugin type="applet" code="DigitalClock" align="center" height="25" width="300"
    >
         <jsp:params>
              <jsp:param name="language" value="<%=request.getLocale().getLanguage()%>" />
              <jsp:param name="country" value="<%=request.getLocale().getCountry()%>" />
              <jsp:param name="bgcolor" value="FFFFFF" />
              <jsp:param name="fgcolor" value="CC0066" />
         </jsp:params>
              <jsp:fallback>
              <p>Unable to start plugin.</p>
         </jsp:fallback>
    </jsp:plugin>
    ===========
    And Java plugin tell me that can't find DigitalClock class. I want to ask how to deply this JSP using deploytool.
    Thanks,
    Wise

    Hi
    It should be in such a way,
    The Jsp:param is similar to PARAM used in Applet.
    <jsp:plugin type="applet"
    code="MyApplet.class"
    width="475" height="350"
    <jsp:params>
    <jsp:param name = "PARAM1" value="VALUE1" />
    </jsp:params>
    </jsp:plugin>
    jsp:fallback Element
    It provides alternate text to browsers that do not Support OBJECT or EMBED. You can use this element in the same way as you provide alternate text in your applet.
    <jsp:fallback>
    <b> Error: This example requires java </b>
    </jsp:fallback>
    </jsp:plugin>
    I hope this will help you.
    Thanks
    Bakrudeen
    Technical Support Engineer
    Sun MicroSystems Inc, India

  • Applet in JSP Unable to run.. help!

    Hello all... am running Lomboz Eclipse on WinXP .. all current versions and runtimes of relative java and tomcat updated and my web apps are all working as expected with no real problems... EXCEPT that I am unable to get a simple applet to display in a jsp page. I am using the <jsp:plugin > tag and the cosole gives me that dreaded bloody class not found error. I can run the applet
    in appletviewer (from inside the ide) no problem. I have tried placing the applet in a html page then using <jsp:include> but alas that seems to lock up my whole system. I remember several years there was a tool called the sun applet plug in converter... not sure to be honest.. I am no expert in web apps by any means...so my plight may just be class file in the wrong dir.. or some other arcane issue with classpath.... and help would be appreciated!
    regards David

    Hi,
    Kindly refer the below document,
    Recommended Browsers for Oracle E-Business Suite Release 12 (Doc ID 389422.1)
    Regards
    Sham

  • Process Monitor Diagram Applet in JSP

    Has anyone experienced to use Java Applet in JSP to display the process diagram, just as what you can see in the workflow console. I notice that WF_MONITOR has a getMonitorURL() API which returns a link that leads to Workflow Console, I feel this isn't user friendly. If I could bring what user exactly sees the process diagram in workflow console to Java JSP, it would be superb ...........
    any idea?
    Kun

    All I can think of is that you are using swing and
    including the necessary files via import statements in
    the code. This might cause the applet to run fine with
    the default Netscape JVM. On the other hand, when
    using the jsp:plugin tag the browser is instructed to
    download the Java2 plugin regardless of whether the
    applet will run or not. What I'm saying is that you
    probably don't have the Java2 plugin installed on your
    browser rather you have the necessary jar files in
    your classpath to support Java2. Does that make any
    sense?>
    CliffI don't have a shell CLASSPATH variable, and I'm not sure how to tell what CLASSPATH variable Netscape is using.
    The applet doesn't use Swing as far as I can tell, the code for this applet is at
    http://tmap.pmel.noaa.gov/~callahan/JAVA/map_v3.0/LiveMap_30.java.
    It appears to use only awt for imaging, which I think is considered Java1.
    A bit off topic:
    I have the javaplugin.so which ships with jdk1.3.1_01. However when I look under Edit->Preferences->Navigator->Applications and try to set the plugin used for application/x-java-applet I see that the setting is one for "Unknown - prompt user". Also if I look under Edit->Preferences->Advanced I can see that "Enable Java" is checked and activated but "Enable Java Plugin" is not checked and unavailable (it is greyed-out).
    1) How can I get Netscape to "know about" the plugin I have available in my JRE ?
    2) How can I tell Netscape to use this plugin for all things Java ?
    3) How is it that the applet runs fine when included in a HTML page, even though it appears that my browser's application settings aren't set up to handle applets correctly ?
    4) The Netscape Edit->Preferences->Advanced shows that Java is enabled but the plugin is not. I guess I'm missing something here as I thought that the Java plugin was required for anything Java related to run (such as applets) but this is obviously not so since the applet will run fine if coming from the HTML page.
    A bit perplexed...
    -James

  • Jsp:plugin jreversion1.4 - tomcat4.1.10 - how do I do this?

    I would like to get Tomcat 4.1.10 to recognize jreversion's other than 1.2.2 when using the jsp:plugin tag.
    <b>My setup:</b>
    Windows XP Professional
    Tomcat 4.1.10
    JDK 1.4.0_01
    I wrote a cheezy applet that just displays "Helloworld"
    and works fine in a simple page with just a simple applet tag.
    I have a short JSP page with the following plugin line:
    <code>
    <jsp:plugin type="applet" code="forgetech.web.ForgeApplet" codebase="." archive="ForgeApplet.jar" height="100" width="200" jreversion="1.4.1">
    <jsp:fallback>
    <b> JRE 1.4.1 could not be installed. </b>
    </jsp:fallback>
    </jsp:plugin>
    </code>
    The page works fine for all machines that already have a JVM.
    But
    On a Windows 2000 Professional box w/ IE6 and no Sun JVM; when
    I navigate to the page it tries to download and install the 1.2.2 plugin. I want it to download the latest JRE instead. How can I get Tomcat to recognize 1.4 (or soon 1.4.1) and download the appropriate JRE? I tried looking through some of the config files looking for some kind of mapping but did not see anything.
    I know I can use the <b>nspluginurl</b> and <b>iepluginurl</b>, but I really dont like hardcoding links into my code.
    As a bonus; is there a way to fill in jsp:plugin jreversion attribute with a JNDI lookup. This would be nice so that I can set all of my JSP's on my Tomcat server to push the latest and greatest JRE with their applets.
    Thanx in advance,
    - Chris

    Oops; I used the special tokens wrong. Sorry peoples... here is the post correctly formatted:
    I would like to get Tomcat 4.1.10 to recognize jreversion's other than 1.2.2 when using the jsp:plugin tag.
    My setup:
    Windows XP Professional
    Tomcat 4.1.10
    JDK 1.4.0_01
    I wrote a cheezy applet that just displays "Helloworld"
    and works fine in a simple page with just a simple applet tag.
    I have a short JSP page with the following plugin line:
    <jsp:plugin type="applet" code="forgetech.web.ForgeApplet" codebase="." archive="ForgeApplet.jar" height="100" width="200" jreversion="1.4.1">
    <jsp:fallback>
    <b> JRE 1.4.1 could not be installed. </b>
    </jsp:fallback>
    </jsp:plugin>The page works fine for all machines that already have a JVM.
    But
    On a Windows 2000 Professional box w/ IE6 and no Sun JVM; when
    I navigate to the page it tries to download and install the 1.2.2 plugin. I want it to download the latest JRE instead. How can I get Tomcat to recognize 1.4 (or soon 1.4.1) and download the appropriate JRE? I tried looking through some of the config files looking for some kind of mapping but did not see anything.
    I know I can use the nspluginurl and iepluginurl, but I really dont like hardcoding links into my code.
    As a bonus; is there a way to fill in jsp:plugin jreversion attribute with a JNDI lookup. This would be nice so that I can set all of my JSP's on my Tomcat server to push the latest and greatest JRE with their applets.
    Thanx in advance,
    - Chris

Maybe you are looking for