3 Replies Latest reply on Aug 15, 2004 12:04 PM by gusvin

    Applets in JBOSS

    teklord

      Hi,
      I'm tring to run an Applet from one of my files deployed in webmod.war.
      I have a very simple applet(that does nothing except makes a red sqare), and a jsp file (AppletTest.jsp) in which i have this code:

      <jsp:plugin type="applet" code="MyApplet.class" width="200" height="200">
      </jsp:plugin>
      

      Which directory should I put on the codebase="..." attribute so that my jsp can find the .class to open the applet.

      I have also tried with a simple html file in webmod.war but I have the same problem... I don't know which directory to put under codebase...

      MyApplet.class file in in webmod.war unde the directory WEB-INF/classes.

      If anyone has another solution of how can I run an Applet from a jsp or html in web module please post a reply.

      Thanks
      Teo

        • 1. Re: Applets in JBOSS
          starksm64

          Put the applet classes in a jar under webmod.war and do not use a codebase. Specify the jar via the archive attribute. This is how the web-console.war applet is deployed:

          <applet
           width="100%"
           height="100%"
           code="org.jboss.console.navtree.AppletBrowser"
           archive="applet.jar"
           >
          ...
          </applet>
          


          • 2. Re: Applets in JBOSS
            teklord

            Thanks! It worked this way... Is there another place where I can put the applet.jar file or the only place is within webmod.war?

            Thanks

            • 3. Re: Applets in JBOSS
              gusvin

              I´m using the applet like you said, but it´s not working.
              I´m using jboss in windows xp.
              The application says that org.jboss.console.navtree.AppletBrowser not found.

              Someone know why is this happening?