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

Similar Messages

  • Jsp:plugin and codebase

    I have a JSP with the following jsp:plugin code:
    <jsp:plugin type="applet"
    code="com.package.Applet.class"
    codebase="/application1/applets/" width="50"
    height="50">
    </jsp:plugin>
    Web applications, which run this applet, specify different codebase, such as /application2/applets/,
    /application3/applets/ and so on.
    Unfortunatelly JSP specification doesn't allow dynamic codebase in jsp:plugin and we create a new JSP for
    each new web domain to specify another hardcoded codebase attribute.
    Could you please advice a trick to generate codebase attribute at run-time, to deploy the same JSP in all
    applications.
    Evgeny Gesin
    Javadesk

    Well, then I would just put in the object/embed tags yourself. You can get whatever the plugin tag writes by just using the tag once with static values and view the source in the browser and copy it out, then replace whatever values with scriptlets (or other taglib tags) to fill in the correct values.

  • Jsp:plugin and  jreversion

    Is jreversion in jsp:plugin really checked?
              I tried it with jreversion="21.31" to test it but nothing happens.
              If I specify 1.3 but the user only has 1.4 installed, does it still work?
              Regards Peter
              

    Well, then I would just put in the object/embed tags yourself. You can get whatever the plugin tag writes by just using the tag once with static values and view the source in the browser and copy it out, then replace whatever values with scriptlets (or other taglib tags) to fill in the correct values.

  • PlugIn and Swingall for applets not enough

    I've seen a lot of messages for applets that won't work with the sun plugin. I have the plugin installed; I have also added swingall.jar to my applet directory and set the ARCHIVE value to it, and can see it being processed. I still get 'class not found' with the following example. A clear answer to how to solve this would be helpful to a lot of people. (And yes, I've run the HTML converter.)
    Jbuilder 4.0 automatically adds action listeners for buttons, the browser cannot find the class for this:
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    This line is listed with java.lang.NoClassDefFoundError in the java plugin console.
    The code runs fine in the applet viewer.
    What else has to be included for this applet to run with the plugin?

    hello; i just erased the post i started with, because my status has changed. i searched in the firefox folder and found the uninstall folder, and this time, uninstall worked perfectly, and it gave me an option to save my personal info! YAY! i installed ff 3.6.24 without a hitch; FF is Baaaaaack!
    However, I did get a window saying my computer doesn't have enough resources for the latest version of 8, but that I should install the latest compatible version of firefox; which version would that be, I wonder? It takes me to the same page with the ff 3.6.24 downloads. I already have that now.
    I am going to mark this as solved; thank you cor-el for helping me with this problem and sticking with me as i whined and moaned, and tried to get the courage to "just do it!"

  • JSP plugin call for applet

    How do I call an applet with the JSP plugin call? The applet works OK when called from an HTML file. However, when called from a JSP file, the applet is not found.
    Here's the code:
    <jsp:plugin type="applet" code="SelectList.class" codebase="applet"
    archive="bc4jhtml.jar,datatags.jar,uixtags.jar,bc4juixtags.jar,ojsp.jar,ojsputil.jar,oc4j.jar,servlet.jar,ojc.jar,xmlparserv2.jar,regexp.jar,share.jar,uix2.jar,xmlcomp.jar,jdevrt.jar,runtime12.jar,bc4jmt.jar,collections.jar,bc4jct.jar,jndi.jar,classes12.jar,nls_charset12.jar,bc4jimdomains.jar,ordim.jar,ordhttp.jar,jdevcm.jar,bc4jdomorcl.jar,bc4jdatum.jar,activation.jar,jcert.jar,jnet.jar,jta.jar,mail.jar,ejb.jar,jaxp.jar,jdbc.jar,jaas.jar,jsse.jar,bc4jui.jar,bigraphbean.jar,LW_PfjBean.jar"
    jreversion="1.2" width="1000" height="360" >
    <jsp:params>
    <jsp:param name="test" value="This is a test." />
    </jsp:params>
    <jsp:fallback>
    You need to install the Java plugin on your web browser to run this applet.
    </jsp:fallback>
    </jsp:plugin>

    You really don't need to put all the jar files in your archive list.
    Most likely, you just need to put the jar that contains the applet.
    And, few more dependencies jar files.
    Here is some sample code for your reference:
    <jsp:plugin type="applet" code="Clock2.class" codebase="applet" jreversion="1.2"
    width="160" height="150" >
    <jsp:fallback>
    Plugin tag OBJECT or EMBED not supported by browser.
    </jsp:fallback>
    </jsp:plugin>
    code attribute points to a class file "Clock2.class"
    under the directory under codebase attribute "applet"
    You may want to take a look into the HTML / JSP document about
    how the plugin tag works in HTML / JSP.

  • 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

  • Jsp plugin

    I have created a jsp page and inserted an applet using jsp plugin.
    the location of the jsp is C:\JDEV\testapp\test_project\public_html
    and the location of the applet class is C:\JDEV\testapp\test_project\classes\test_project.
    How can I supply the codebase information during plugin as' \ ' is treated as escape character.
    How can I bind an applet with an action button of a jsp page?
    Thanks

    You need to place the class files needed to run your applet in some browser-accessible location. The WEB-INF/classes is not one of those client-accessible directories.
    Think of the way you store your images on the server. Same concept here.

  • Jsp:plugin woes

    Hello
    I am having difficulty with the jsp lugin. I have a working applet, however when I try to load it with a jsp as below it fails. Even though the browser has the 1.4.2_10 plugin for NS and even the 1.5.0_06 pluginnot matter what I put in for the jreversion, it keeps asking for the plugin. Even when I dn again the jre/plugin it fails. The generated html is below. Can someone inform me how to use the jsp lugin to work correctly? tia.
    <%@ page errorPage="showParams_error.jsp" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <html>
    <head>
    <title>
    showParams
    </title>
    </head>
    <body bgcolor="#ffffff">
    <h1>
    JBuilder Generated JSP
    </h1>
    Here we attempt to use jsp lugin to load the plugin and parameterize the applet
    <jsp lugin type="applet" code="jscript01.showParams.class" archive="jscript01.jar"
    codebase="." jreversion="1.5.0_06">
    <jsp arams>
    <jsp aram name="card" value=""/>
    <jsp aram name="name" value=""/>
    <jsp aram name="address" value=""/>
    <jsp aram name="expiry" value=""/>
    <jsp aram name="ccv" value=""/>
    </jsp arams>
    <jsp:fallback>
    Sorry we are unable to start the Java plugin. You must first dn stuff>
    </jsp:fallback>
    </jsp lugin>
    html
    <html>
    <head>
    <title>
    showParams
    </title>
    </head>
    <body bgcolor="#ffffff">
    <h1>
    JBuilder Generated JSP
    </h1>
    Here we attempt to use jsp lugin to load the plugin and parameterize the applet
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 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="jscript01.showParams.class">
    <PARAM name="java_codebase" value=".">
    <PARAM name="java_archive" value="jscript01.jar">
    <PARAM name="type" value="application/x-java-applet;version=1.5.0_06">
    <PARAM name="card" value="">
    <PARAM name="name" value="">
    <PARAM name="address" value="">
    <PARAM name="expiry" value="">
    <PARAM name="ccv" value="">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.5.0_06" pluginspage="http://java.sun.com/products/plugin/" java_code="jscript01.showParams.class" java_codebase="." java_archive="jscript01.jar"
    card="" name="" address="" expiry="" ccv="">
    <NOEMBED>
    </COMMENT>
    Sorry we are unable to start the Java plugin. You must first dn stuff>
    </NOEMBED></EMBED>
    </OBJECT>
    </body>
    </html>

    Hello
    I am having difficulty with the jsp lugin. I have a working applet, however when I try to load it with a jsp as below it fails. Even though the browser has the 1.4.2_10 plugin for NS and even the 1.5.0_06 pluginnot matter what I put in for the jreversion, it keeps asking for the plugin. Even when I dn again the jre/plugin it fails. The generated html is below. Can someone inform me how to use the jsp lugin to work correctly? tia.
    <%@ page errorPage="showParams_error.jsp" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <html>
    <head>
    <title>
    showParams
    </title>
    </head>
    <body bgcolor="#ffffff">
    <h1>
    JBuilder Generated JSP
    </h1>
    Here we attempt to use jsp lugin to load the plugin and parameterize the applet
    <jsp lugin type="applet" code="jscript01.showParams.class" archive="jscript01.jar"
    codebase="." jreversion="1.5.0_06">
    <jsp arams>
    <jsp aram name="card" value=""/>
    <jsp aram name="name" value=""/>
    <jsp aram name="address" value=""/>
    <jsp aram name="expiry" value=""/>
    <jsp aram name="ccv" value=""/>
    </jsp arams>
    <jsp:fallback>
    Sorry we are unable to start the Java plugin. You must first dn stuff>
    </jsp:fallback>
    </jsp lugin>
    html
    <html>
    <head>
    <title>
    showParams
    </title>
    </head>
    <body bgcolor="#ffffff">
    <h1>
    JBuilder Generated JSP
    </h1>
    Here we attempt to use jsp lugin to load the plugin and parameterize the applet
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 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="jscript01.showParams.class">
    <PARAM name="java_codebase" value=".">
    <PARAM name="java_archive" value="jscript01.jar">
    <PARAM name="type" value="application/x-java-applet;version=1.5.0_06">
    <PARAM name="card" value="">
    <PARAM name="name" value="">
    <PARAM name="address" value="">
    <PARAM name="expiry" value="">
    <PARAM name="ccv" value="">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.5.0_06" pluginspage="http://java.sun.com/products/plugin/" java_code="jscript01.showParams.class" java_codebase="." java_archive="jscript01.jar"
    card="" name="" address="" expiry="" ccv="">
    <NOEMBED>
    </COMMENT>
    Sorry we are unable to start the Java plugin. You must first dn stuff>
    </NOEMBED></EMBED>
    </OBJECT>
    </body>
    </html>

  • 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"

  • 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>

  • 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
              

  • Jsp:plugin applet code

    Hi all, I've been wondering if applets can be dynamically called from a jsp or servlet using strings in the applet code section. would this be good if a database was used to store the paths of the applets?
    i've tried this with a small applet in different ways, just to see the effect in Apache Tomcat 4.1.24, but it didn't really work. could anyone help me out here?
    the coding i've been using is below :
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    Here is the applet!
    <br>
    <jsp:plugin type="applet" code="ElecBill_a" codebase="." height="200" width="200" >
         <jsp:fallback>
              <p> Unable to use Java Plugin</p>
         </jsp:fallback>     
         </jsp:plugin>
    <br>
    <applet code = "ElecBill_a.class" height="200" width="200"></applet>
    //up to here it works fine, both applets appear. but below, the string is read directly and causes an error
    <%! String myapplet = new String("ElecBill_a"); %>
    <%! public String getName() {return myapplet; } %>
    <br> The name of the class file is <%= getName() %>
    <br>
    <jsp:plugin type="applet" code="<%= "myapplet" %>" codebase="." height="200" width="200" >
         <jsp:fallback>
              <p> Unable to use Java Plugin</p>
         </jsp:fallback>     
         </jsp:plugin>
    </body>
    </html>

    yes, i suppose it doesn't. i've tried to insert it using the original way with the applet tag like this
    <APPLET code = <%= getName() %> width=300 height=300>
    </APPLET>
    and this works...so i might go with this for a short term solution until i can figure out a better way...thanks!

  • 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?

  • Question concerning Eclipse and Tomcat Plugin and JSP

    I have a Tomcat-Project that I am working on in Eclipse and quite a few external JARs. Everything works fine, when I run my Test class within my project (in Eclipse). But as soon, as I am trying to call the jsp in my browser I get Exceptions: "java.lang.NoClassDefFoundError: org/apache/log4j/Logger" for example, which tells me that in the browser it can't find the JARs... I'm guessing something's wrong with the classpath but I was thinking that Eclipse would handle those things for me...
    I've added the JARs to my project via Eclipse (Properties -> Java Build Path -> Libraries -> Add external JARs). And I've created a subdirectory for my jsp files and allowed my project to update the .xml file for the settings and all... Do I need to do anything else? What have I done wrong so far, have I forgotten to do?

    I solved the problem...

  • Jsp:plugin problem

    hi,
    i am using jsp:plugin to handle applets.when i am placing the applet class file in the same jsp files directory itself its working.but,when i am placing the applet class file in the WEB-INF/classes directory it couldn't point the class file and its not working.here is the tag,
    <jsp:plugin type="applet" code="SampleAppletExample" codebase="WEB-INF/classes" height="400" width="500">
    </jsp:plugin>
    what is the problem with the tag.how can i pont the class file from jsp:plugin tag.
    any one knows please help me.
    regards,
    j.mouli

    Hi,
    Please check your codebase parameter again. That part of the directory (web-inf\classes is not visible to client i.e he cann't access it. By default the classes stored under web-inf\classes directory can be accessed from the jsp.
    Please find the extract from apache site related to this.
    "WEB-INF/classes/ - This directory contains any Java class files (and associated resources) required for your application, including both servlet and non-servlet classes, that are not combined into JAR files. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under WEB-INF/classes/. For example, a Java class named com.mycompany.mypackage.MyServlet would need to be stored in a file named WEB-INF/classes/com/mycompany/mypackage/MyServlet.class.
    For further information on this, please browse through the 'Standard Directory Layout' section at http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Sysytems
    http://www.sun.com/developers/support/

Maybe you are looking for

  • I am having an issue with my iphone4s. It will no longer connect to wifi.

    I am having an issue with my iphone4s. It will no longer connect to wifi. The wifi icon is grey and cannot be turned on. How can this be rectified?

  • Lost pdf viewing ability

    By accident I deleted my Applications folder . I reinstalled it from backup. Now when I use Safari and click on a site with a PDF, Safari won't open the PDF in the Safari window. I reinstalled Adobe and downloaded the Safari application, then reinsta

  • Providing option to listen to voice over rather than read book

    I am preparing a children's book. The pages are being setup in Keynote in individual pages to upload to iAuthor. I have some animation and 5 page have video. Page count is 18 color pages. I want to give the reader the option of having it read or read

  • Im missing the multi-speaker icon tab in my lower right corner.

    Using Windows 7 home prem.  Firewall off and no home sharing compatibility with iphone and apple airport express. I once had the ability to switch or share computer speakers and airport express with icon "multi speakers" in lower right hand corner of

  • Need a soft copy of any book or a good reading material?

    Hello All,   Anybody have any book soft copy or any good material. I am currently working as a ABAP Developer. I am interested to learn XI. I do have XI IDES system. But don't know how to learn. Can any body share him material with me. If any body wa