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.

Similar Messages

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

  • Howto pass dynamic jsp:param value to applet

    Hi.
    I have a JSP page with 3 to 4 links... and an applet with jsp:plugin .
    So i want to pass the URL behind the link to the applet as a Request Param..
    My JSP code looks like
    <a link href="www.google.com">Google</a>
    <a link href="www.oracle.com">Oracle</a>
    <a link href="www.gmail.com">Gmail</a>
    <jsp:plugin type="applet"
                                code="MyApplet"
                                height="0" codebase="../../jars/" width="0"
                                name="MyApplet"
                                align="bottom">
                            <jsp:params>
                                    <jsp:param name="applicationURL"
                                               value="this should be the "/>
                            </jsp:params>
                            <jsp:fallback>
                                    <p>This feature should run on applet supported
                                       browser.</p>
                            </jsp:fallback>
                    </jsp:plugin>and my applet code looks like
    init()
              String appURL = getParameter("applicationURL");
                    System.out.println(appURL);
              }I have a similar thread in Java forums... Howto pass dynamic jsp:param value to applet
    Thanks,
    Murali.

    My JSP code looks like
    <jsp:plugin type="applet"
                                code="MyApplet"
                                height="0" codebase="../../jars/" width="0"
                                name="MyApplet"
                                align="bottom">
                            <jsp:params>
                                    <jsp:param name="applicationURL"
                                               value="applicationURL"/>
                            </jsp:params>
                            <jsp:fallback>
                                    <p>This feature should run on applet supported
                                       browser.</p>
                            </jsp:fallback>
                    </jsp:plugin>and my applet code looks like
    init()
              String appURL = getParameter("applicationURL");
                    System.out.println(appURL);
              }Now i want to have links on JSP pages clicking on which corresponsing url will be displayed in applet.
    Edited by: 635237 on Jan 24, 2011 10:44 AM
    Edited by: 635237 on Jan 24, 2011 10:45 AM

  • Virus scan failed Error on deploying a web application having a jar file for calling the applet on the jsp page

    Hi,
    I have an applet application that i want to deploy on the Oracle cloud.
    So i have created a jar file for the applet application and i am using this jar to call the applet on a jsp page.
    But when i am delpoying my application on the java cloud, its giving me the below error:
    2014-10-28 03:16:41 CDT: Starting action "Virus Scan"
    2014-10-28 03:16:41 CDT: Virus Scan started
    2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
    2014-10-28 03:16:49 CDT: File Scanned: "Application7.ear".
    2014-10-28 03:16:49 CDT: File Size: "106698122".
    2014-10-28 03:16:49 CDT: File Status: "INFECTED".
    2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
    2014-10-28 03:16:49 CDT: Virus scan failed.
    2014-10-28 03:16:49 CDT: "Virus Scan" complete: status FAILED
    Can't we deploy any application having applet or swing component's onto the cloud?
    Or do we need to request for any extra permissions for the same?
    Thanks,
    Manoj

    I don't see applets mentioned in the supported features nor in the unsupported features so not sure if they are supported you would likely need to contact the operations team to confirm.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

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

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

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

  • Calling an Applet from a JSP

              Hi,
              I need help with this, I want to invoke an applet from a JSP page. The applet code
              is compiled and resides in a separate jar file. The question is, how do I deploy
              this applet in weblogic 6.1 and then have a JSP call this applet.
              --Krish.
              

    To call an applet from a jsp use the <jsp:plugin> tag
              <jsp:plugin
              type="applet"
              code="classFileName"
              codebase="classFileDirectoryName"
              [ align="bottom|top|middle|left|right" ]
              [ height="{displayPixels |  <%= expression %>}"]
              [ width="{displayPixels |  <%= expression %>}"]
              [ hspace="leftRightPixels" ]
              [ vspace="topBottomPixels" ]
              </jsp:plugin>
              Krish Khambadkone wrote:
              > Hi,
              >
              > I need help with this, I want to invoke an applet from a JSP page. The applet code
              > is compiled and resides in a separate jar file. The question is, how do I deploy
              > this applet in weblogic 6.1 and then have a JSP call this applet.
              >
              > --Krish.
              

  • Help for jsp plugin

    The applet is not showing image on applet when running through following url. Remember It runs by simple applet tag in html but not through <jsp:plugin tag in jsp file.
    the following two links for same inker.jar file.
    not ok not running=====>"http://mycgiserver.com/~aftmycgijsp/jhan3.jsp"
    ok runing==============>"http://mycgiserver.com/~aftmycgijsp/jhan3.html"
    a) Tum.class in inker.jar with Image.jpg contain following code:
    image2 = getImage(getCodeBase(),"Image.jpg");
    g.drawImage(image2,0,0,this);
    b) I am using following tags in my jsp file,
    jhan3.jsp
    <html>
    <head>
    <jsp:plugin type="applet" code="Tum.class" codebase="http://www.mycgiserver.com/~aftmycgijsp/applets/jhan" jreversion="1.2" archive="inker.jar" width="171" height="185" >
    <jsp:fallback>
    Plugin tag OBJECT or EMBED not supported by browser.
    </jsp:fallback>
    </jsp:plugin>
    </body>
    </html>
    c) and the source file in my browser appears for above jsp is translated as to me as,
    <html>
    <head>
    <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" height="185" width="171">
    <param name="java_archive" value="inker.jar">
    <param name="java_codebase" value="http://www.mycgiserver.com/~aftmycgijsp/applets/jhan">
    <param name="java_code" value="Tum.class">
    <param name="type" value="application/x-java-applet;version=1.2">
    <comment><embed type="application/x-java-applet;version=1.2" codebase="http://java.sun.com/products/plugin/" height="185" width="171" java_archive="inker.jar" java_codebase="http://www.mycgiserver.com/~aftmycgijsp/applets/jhan" java_code="Tum.class">
    <noembed></comment>
    Plugin tag OBJECT or EMBED not supported by browser.
    </noembed></embed></object>
    </body>
    </html>
    please send any suggestions.

    This jsp:plugin tag should work. BUt the problem is that not showing image from jar file. but ok when used with html applet tag.

  • 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

  • AM calls to LDAP No plugins configured for this operation

    Hi All,
    I am getting the following error when creating a user using AM SDK calls. Can someone shed some light here.
    We are using SUN JES 2005Q4, AM 7.0 Patch 5.
    Thanks
    Bala
    [#|2007-11-02T11:12:09.615-0500|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=13;|
    Message:No plugins configured for this operation
    at com.sun.identity.idm.server.IdServicesImpl.create(IdServicesImpl.java:177)
    at com.sun.identity.idm.AMIdentityRepository.createIdentity(AMIdentityRepository.java:246)
    at gov.research.core.eauth.action.SSOUtilities.createUser(SSOUtilities.java:197)
    at gov.research.core.eauth.action.SAMLClientNSFAction.execute(SAMLClientNSFAction.java:99)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:226)
    at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)
    |#]

    yes i am using JSF 1.2 version.
    i have included listener tag in web.xml.But still i
    am getting same error.
    Sorry i didnt get couple of things that u explained
    about myfaces.
    could u explain more eloberately?JBoss comes with MyFaces as it's JSF implementation. If you wish to use JSF 1.2, you need to uninstall MyFaces and install Sun's RI of JSF (or another one if you prefer). It is not hard to do, see the JBoss documentation:
    http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces

  • 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

  • How jsp can call applet functions

    good morning to all java experts
    i have one problem that is
    in my application i have one applet in the server side which contains functions like encryption, decryption, hash functions.
    whenever any client wants to store some information on server side then he download the applet from the server and he gives his own key and encrypt all the contents and these encrypted message only transmitted through media and store on server side
    whenever clients wants to retrieve some information from server then he fetch the only encrypted message to client side then he down load the applet from server and decrypts the message as he pass the previous key.
    the problem is that whenever jsp calls the applet functions through javascript it displaying error message like: error in the jsp page
    but this concept working through html page properly
    plss reply as soon as possible
    thanking uuu

    the problem is that whenever jsp calls the applet functions through javascript Show the relevant code how you thought to accomplish this (this is namely impossible without firing a new request to the server).
    it displaying error message like: error in the jsp pageAnd further on, you -as developer- should know that it is not-done and unclear to talk about errors if they are irrelevant. Always post and the full, complete, original and unchanged error message and -if in Java- also the stacktrace. They are helpful in debugging.

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

Maybe you are looking for

  • Report Generation Toolkit 1.01 and broken arrow

    Hi, I desperately need help because I need to build my application tomorrow morning for our production department and have trouble with the report toolkit. I am aware of your knowledge base entry regarding this problem. I already deinstalled and rein

  • I need a script, is it possible?

    Hello all,      I need a script that does the following. I select an object in AI CS3 and then execute the script. 1st. The script takes the object and fills it with 100% magenta and makes it a spot color named CC. 2nd. The script then resizes the do

  • Zen Touch 40GB Cradle for the c

    I'd like to set up some sort of cradle system in my car so I can just slide my Zen Touch in. Where can I find such an animal?

  • Acrobat Reader and McAfee and GetPlus?

    Adobe have you lost your mind?  You are (and really are) tricking people into installing McAfee and in my opinion this is just as bad as those antivirus credit card theves.  Funny that this is McAfee working with you to Bloat up my system and try to

  • Files Missing But There

    I am using a 8GB flash drive to store files. I use Windows 7 in virtualization to develop macros in EXCEL which are stored on the drive also. Up until two weeks ago I had no problems accessing files stored on the drive (EXCEL and other files). Now I