Include Applet Within JSPX

Can anyone explain to me how to include an Applet within a jspx page?
Thanks,
Tim

Hi,
I'm using two applets with jspx in my application, and all components works fine.
I'm not using the <verbatim&qt; tag for applets but only for javascript.
Here is the code I'm using :
&lt:applet width="0" height="0" MAYSCRIPT="MAYSCRIPT"
                    code="myapplet.class" codebase="."
                    archive="myapplet.jar">
               </applet>
rgds,
Anthony

Similar Messages

  • Why does running an applet within a portlet not work?

    Hello,
    I have an applet and I want to run this in a portlet.
    I tried to load this applet into a portlet with SunONE Studio and Portlet Builder, and it works. The applet is running without problems.
    Now I tried to run this applet in a portlet under WebLogic 8.1 SP3. But the applet doesn't load. There ist only a gray rectangle to see. No error message, which would help to find the problem.
    To load the applet I'm using the Applet tag as follows:
    <APPLET archive='"+request.getContextPath()+"/folder/myApplet.jar' code='source/applet/myapp.class' ></APPLET>
    It's the same, I am using with SunOne Studio and there is the same package/directory structure in both.
    Any ideas?
    Is ist possible to run applets within portlets under WL 8.1?
    Thank you!
    Ines

    Hello,
    I have an applet and I want to run this in a portlet.
    I tried to load this applet into a portlet with SunONE Studio and Portlet Builder, and it works. The applet is running without problems.
    Now I tried to run this applet in a portlet under WebLogic 8.1 SP3. But the applet doesn't load. There ist only a gray rectangle to see. No error message, which would help to find the problem.
    To load the applet I'm using the Applet tag as follows:
    <APPLET archive='"+request.getContextPath()+"/folder/myApplet.jar' code='source/applet/myapp.class' ></APPLET>
    It's the same, I am using with SunOne Studio and there is the same package/directory structure in both.
    Any ideas?
    Is ist possible to run applets within portlets under WL 8.1?
    Thank you!
    Ines

  • To create a dvd and include hyperlinks within the presentations to further info

    I want to create a DVD with a a main menu that feeds into various slideshows and pdf documents. But I want to include hyperlinks within these slideshows and pdf's that will bring you to further information (Sub Folders lets say!) that will not be contained within the initial slideshows and pdf documents but held somewhere on the dvd. How do I create these hyperlinks or can this be done?

    Hi
    I doubt that very much.
    a Video-DVD as You make with iDVD is to be played on any standard DVD-Player and they can not address internet or playback .pdf.
    • You can store Data-material on a Video-DVD but need a computer to use it
    • You can convert a .pdf file into a movie to be viewed as any other movie (I never get good enough quality in this conversion though)
    and
    You can make the DVD into a Data-DVD on Desktop/Finder and convert Your movies into QuickTime .mov (or other) to be played on PC/Mac - but this will not play in any DVD-player.
    Have You ever seen a DVD that work as You describe Your wish ? I never.
    Yours Bengt W

  • Possible to have an applet within an applet?

    Hi. I am designing a GUI using swing. It has a Card layout ie. different tab screens. On one of them I want to implement a pannel within which the user can scribble.
    I have the code for a scribble applet. can I run that applet within a pannel in my GUI?
    how?
    or if not, how can place the scribble code in my GUI code to work only in that pannel on one of the tab screens?
    Yhis has me rightly puzzled, and I am sure there is a simple answer. I would appreciate any help on this matter,
    Thanks...

    I haven't tried this but it seems like it ought to work:
    Since Applet extends Panel, just add an instance of the Applet to your display as you would any other panel, then call its init() and start() methods.

  • Testing applets within a browser

    Hello all,
    We are testing an applet within a web browser. As soon as the app opens, it will ask the user to enter user name and pwd in a pop-up window. The openScript hasn't recorded the user inputs while record.
    Any thoughts?
    Regards,
    rookie

    Hum it reminds me a problem I had with a Forms authentication which was NOT supported by OpenScript... Long time ago though.
    First, I guess it's a load test script. Maybe you could tell us what the authentication is. Someone should know. It could then help to solve the problem. I have an example yesterday where we had to manually add the auth in the OpenScript script
    Like:
    http.addAuthentication("http://myapp", "jb",deobfuscate("2domIjZNAvyzbduYz04f/g=="));
    (right click, add other, http, authentication)
    JB

  • Applet within a table tag.

    Hi,
    I have placed an applet within a <table> tag. The applet does not get executed. I see only blank space, even though the HTML source has the applet tag. If I remove the table tags and place the applet directly in <body>, then it works fine. So there isnt any problem with the codebase or anything.
    Are there any specific rules as to inside which tags can the <applet> tag be embedded? I would apprecite any information regarding this.
    Thanks,
    RG

    This is my html file:
    <table>
         <tr>
              <td>
                   <applet code="test" />
              </td>
              <td>
                   <object ID='jsApplet' classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" >
                      <param name="code" value="test.class" />
                    </object>
              </td>
              <td>
                   <DIV id="dvObjectHolder">Applet comes here</DIV>
              </td>
         </tr>
    </table>
    <script>
    if(window.navigator.appName.toLowerCase().indexOf("netscape")!=-1){ // set object for Netscape:
         document.getElementById('dvObjectHolder').innerHTML = "        <object ID='jsApplet' classid=\"java:test.class\"" +
                    "height=\"0\" width=\"0\" onError=\"changeObject();\"" +
              ">" +
                    "<param name=\"mayscript\" value=\"Y\">" +
            "</object>";
    }else if(window.navigator.appName.toLowerCase().indexOf('internet explorer')!=-1){ //set object for IE
         document.getElementById('dvObjectHolder').innerHTML =      "<object ID='jsApplet' classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" +
                   "         height=\"0\" width=\"0\" >" +
                   "   <param name=\"code\" value=\"test.class\" />" +
                   " </object>"
    </script>this is my applet
    public class test extends java.applet.Applet implements Runnable{
         public test(){
              // run it as an applet or run it as an application
              new Thread(this).start();
         public void init(){
         public void run(){
              System.out.println("applet started");
         public static void main(String[] args) {
                   // run it as an applet or run it as an application
                   new test();
    }I open the html file with IE6 and have no problem.

  • Error while using applet in Jspx

    Hi all,
    I creating an applet application using java 1.6, and run successfully if i run it with HTML page.
    But when i create a jspx page with using oracle webcenter library, i cannot run the applet, it return this error in the java console:
    network: Cache entry not found [url: http://127.0.0.1:7101/Application9-Project1-context-root/faces/, version: null]
    basic: error: Incompatible magic value 1013478509 in class file my/applet/app/client/Applet1.
    java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file my/applet/app/client/Applet1
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file my/applet/app/client/Applet1
    basic: Loading Java Applet Failed...
    security: Accessing keys and certificate in Mozilla user profile: null
    Is there anyone encountered the same problem ?
    Regards,
    Constantin B.

    Not "corrupt", just not a class file at all. The decimal value 1013478509 converts to the hex value 3C68746D, which in ASCII represents "<htm". So the request for a class file returns an HTML file.

  • How to create an applet within an application?

    Hi. Im trying to make an applet work within a main application but I cant get it to work because then I have 2 of these and it gives me an error:
    public class java_tester extends JFrame implements MouseListener //MAIN APPLICATION
    public class MusicPlay extends JApplet //APPLET
    I cant have both if them because it is like two different programs.
    Can anyone help me with this?
    Thanks

    ProGenius wrote:
    But when I put public class MusicPlay extends JApplet it underlines it because the name of the main program is different and when I give it the same name it still underlines it. I know it probably is easy to do it but I really dont know how to make it work.
    Thanks a lot for your helpWhat is "it", what is "it" underlining, and why is this a problem? There's no such concept as "main program". If you're confused by the presence of two whole classes, don't be. Anything beyond the laughably trivial will consist of several classes.

  • How to include applet jars into an JSF application

    Hey guys,
    I have a rather simple question. I have made a JAR that contains an applet. The applet runs fine, but when I include the applet into a JSF / JSP page I get a Class not found error.. The JAR containing the applet is included in the websites build path.
    Can someone give me a hint where the JAR shoud go? Maybe a link to a tut would be nice

    classpath wasnt set correctly

  • Is it possible for an applet within a jsp to access a server session?

    I was trying to find info (and sample code) where an applet that is embedded and running within a JSP page accesses the same session of the jsp page it is in.
    The need is for the the applet to access a string within the session and capture it's value and then perform some actions with the string client side within the applet. The value of the string is not important for the example, just being able to access it is.
    Also can javascript cause the applet to call the server on say an "onclick" event? If so, how is this done?
    In otherwords, can javascript interact with an applet?

    Check out the documentation on Heterogeneous Connectivity.
    Hope this helps!

  • Include tags within a JSP block (making readable code)

    I've created a page that includes segments of other pages based upon a condition passed via a parameter. Arg! Let me start over.
    My code looks something like this...
    <%
       String foo = request.getParameter( "action" );
       if ( foo == null ) {
    %>
          <jsp:include page="error.html" flush="true" />
    <%
       } else if ( foo.equals( "add" ) ) {
    %>
          <jsp:include page="add_user.jsp" flush="true" />
    <%
       } else if ( foo.equals( "help" ) ) {
    %>
          <jsp:include page="help.html" flush="true" />
    <%
       } else {
    %>
          <jsp:forward page="display_status.jsp" flush="true" />
    <%
    %>And obviously, this is kind of hard to read. Is there a way that I can do includes and forwards within the context of the JSP block itself? I'm looking for something like...
    <%
       if ( foo == null ) {
          this.include( "error.html", "true" );
       } else if ( foo.equals( "add" ) ) {
          this.include( "add_user.jsp", "true" );
       } ... else {
          this.forward( "display_status.jsp" );
    %>...which should hopefully be a lot more readable.

    for example
    <jsp:include page="text.jsp" flush="true" />
    is equivalent to
    <% JspRuntimeLibrary.include(request, response, "text.jsp", out, true); %>
    ugh...
    There should be more simple solution.

  • UI:include (facelet) within foreach loop

    Hi I'm trying to do a ui:include of another page within a foreach loop, the path of the page to include comes out of the variable of the foreach loop, but this seems not to be working, is there a workaround?
    <c:foreach value="#{myBean.services}" var="service">
    <h:column>
         <ui:include src="/myservices/#{service.name}/serviceMenu.xhtml"/>
    </h:column>
    </c:foreach>
    thx

    THX for the reply
    I tried with the h:dataTable and I have the same problem, dynamic includes do not work within the dataTable loop, the output is ok I tried
    <h:dataTable>
    <h:column>
         <h:panelGroup rendered="#{service.normalizedName eq 'Test'}">
              <ui:include src="/secure/myservices/Test/serviceMenu.xhtml"/>
         </h:panelGroup>
    </h:column>
    </h:dataTable>
    then it is working but I have to create ab EL expression for each possible service which is not maintainable
    any ideas?

  • 'include' directive within servlets

    Hi all.
    I'm trying to build a servlet containing a header wich is
    repeated serveral times, so I would like to use the same
    directive as in JSP:
    <jsp:include page="header.jsp"/>
    Is it possible within a servlet?
    Best regards.

    Thank you for answering.
    If try it:
    getServletConfig().getServletContext().getRequestDispatcher("/includes/test.html").include(request,response);
    I get this error when compiling:
    cannot resolve symbol
    include (request,response);
    ^

  • Including applets in JSP - problem!!

    I'll begin by admitting that I am fairly new to JSP. That said, I am experiencing a ClassNotFoundException when trying to include an applet in a JSP under certain conditions. Here's the detail:
    I'm using Tomcat 4.0.4 and am working in the default ROOT webapp directory. This is running on Win2k Pro on port 8080. I HAVE managed to get the applet to load under the following circumstances:
    - JSP page in ROOT/jsp directory
    - applet class file (and supporting classes) ALSO in ROOT/jsp directory
    That's just great... but I want to be able to place the applet class file and supporting classes with all of the other class files in ROOT/WEB-INF/classes. Here's the scenario that fails time and time again:
    - JSP page in ROOT/jsp directory
    - applet class file (and supporting classes) in ROOT/WEB-INF/classes
    - in this scenario I have added a 'codebase' attribute to the applet tag (please be aware that I have tried this with both the APPLET tag and the jsp:plugin tag, each method yielding identical results)
    - I have tried several different codebase values, all listed below:
    codebase="../WEB-INF/classes/"
    codebase="http://localhost:8080/servlet/"
    codebase="http://localhost:8080/WEB-INF/classes/"
    codebase="."
    and I have tried it w/o a codebase at all
    None of these help the JSP to find the applet class file. I've really thrown my hands up in the air with this. I realize that every 3rd or 4th thread is typically a beginner with some Class not found error... but I've put my time in on this one, and I cannot figure it out. Thanks.

    Hi, Ben
    You bring up a very good issue that a lot of these books about JSPs and Servlets usually forget to mention.
    I dont know what sort of Web Servlet Container you are using, but I know that in Tomcat there is a 'lib' and and 'classes' directory, so if you want to have classes that are used by different applications from different directories then you can place them there. If you want you can compile all these classes into a jar and put that jar either in the 'TOMCAT_HOME/lib' or 'TOMCAT_HOME/common/lib' directories or you can simply put all the .class files into either the 'TOMCAT_HOME/classes' or 'TOMCAT_HOME/common/classes' directories. This way your classes will be known to any applications running on your webserver.
    If, however, you want supporting classes to be only used by servlets or jsps, then you should put them in the web-inf directory.
    Let me know if this works,
    Val.

  • Dynamic construction of include names within sapscript

    I want to be able to set up the name of an include dynamically but within the sapscript rather than using abap code. Is it possible?
    My existing code is :
    /: include ZM_TERMS_OBLIG3_DDD ID etc...
    I want to change this to use a variable:
    /: include &include_name& ID etc...
    Preceding this I've got code in like so
    /:   DEFINE &OBLIG_SUFFIX& = ''.                                   
    /:   IF &EKPO-ZZDELVTYPE& = 'AC'.                                  
    /:   DEFINE &OBLIG_SUFFIX& = '_AC'.                                
    /:   ENDIF.                                                        
    /:   DEFINE &INCLUDE_NAME& = ' '.                                  
    /:   IF &EKKO-BSART& = 'DDD'.                                      
    /:   DEFINE &INCLUDE_NAME& = 'ZM_TERMS_OBLIG3_DDD&OBLIG_SUFFIX&'.  
    /:   ENDIF.                                                                               
    If I print out the value of &include_name& it does hold the name which I I want it to but the include doesn't resolve properly. Got any ideas?

    <b>Answer:</b>
    I found a variation in the assignment statement which fixed it. In debug I found that although printing the correct value internally the variable &include_name& actually still held the string &oblig_suffix& rather than the contents of &oblig_suffix&. Changing the define to use the ':' option gave me the desired results. Note the subtle difference, ':=' instead of the usual '='.
    /:   IF &EKKO-BSART& = 'DDD'.                                              
    /:   DEFINE &INCLUDE_NAME& <b>:=</b> 'ZM_TERMS_OBLIG3_DDD&OBLIG_SUFFIX&'.         
    /:   ENDIF.

Maybe you are looking for

  • IPod Nano 4GB Restore Software Unavailable

    My little sister pulled the cord on my Nano while the screen said "do not disconnect". iTunes is reading the iPod fine. When I go to restore it, I get the following error message: "There was a problem downloading the iPod software for the iPod "iPod"

  • Payload type of wav files encoded with gms codec

    Hello everybody, I have an application which receives and plays alaw formated wav files using JMF(with the help of some additional libraries) . I want to use lower bandwidth for my application. A quick google search indicated that i can do this by us

  • Which is the best SAP module?

    Hi, my name is vamsi and i have just completed my graduation and i am looking forward do SAP course but, as there are a lot of modules im confused what to select. Can you please suggest me which module is good and has a good demand in  the industry w

  • Problem pricing CRMD_BUS2000115

    We have a problem in transaction CRMD_BUS2000115. The pricing is not based on field "PricingRefProd." when we fill in this field with the BADI method CRM_PRODUCT_I_MERGE. We enter product 'A'. This is automatically replaced by 'B', thats fine, but we

  • Movement type restriction

    presently we had allowed negative stock with idea of allowing negative sales. we aalso using VL01NO transaction for stock transfers from stores-stores or stores-dc..etc.   due to the reason of allowing negative stocks system is allowing outbound deli