Closing an applet  from jsp

Hi All,.
Iam facing a problem..pls help me in this..
i am calling a jsp which is running on other server and from their i am calling an applet..
pls see the code ie subnav.jsp
here sp.document.manager.url=http\://localhost\:90/inventx/login.jsp?Return Path=http\://localhost\:90/inventx/spdocs.jsp
<%String docURL = PropsUtil.get("sp.document.manager.url");%>
var actionValueId = document.getElementById("localPlanId").value;
          spdocURL = "<%= docURL %>"+ "?Ids=" + actionValueId + "-" + tab +"&userId=" + "<%= userId %>" + "&passwd=" + "<%= encryptedPasswd %>";
          window.open(spdocURL,'spWindow') ;and here is spdocs.jsp
<%
     String path = request.getPathTranslated( );
     int index = path.lastIndexOf( java.io.File.separatorChar ) + 1;
     Object obj = getServletContext( ).getAttribute( "epm_port" );
     String port = obj == null ? "6060" : obj.toString( );
     String Ids = request.getParameter("Ids");
     String id[] = Ids.split("-");
     String LOCALE = com.inventx.locale.LanguageLocale.getLocale( ).toString();
     java.io.File jar = new java.io.File( path.substring( 0, index ) + "epm/epm.jar" );
     String epmLastModified = new Long( jar.lastModified() ).toString( );
%>
<HTML>
     <HEAD>
          <TITLE>Inventx: Product Downloads</TITLE>
          <SCRIPT LANGUAGE="Javascript">
               function insertLink( ) {
                    document.write( "<td><APPLET id=app CODEBASE=epm CODE=com.inventx.applet.ClientApplet ARCHIVE=\"client.jar\" WIDTH=70 HEIGHT=22>" );
                    document.write( "\t<PARAM NAME=CABBASE VALUE=client.cab>" );
                    document.write( "\t<param name=\"COOKIE\" value=\"EPM_SESSION_ID=<%= session.getId( ) %>\">" );
                    document.write( "\t<param name=\"PORT\" value=\"<%= port %>\">" );
                    document.write( "\t<param name=\"PLANID\" value=\"<%=  id[0] %>\">" );
                    document.write( "\t<param name=\"VERSION\" value=\"1.1.1\">" );
                    document.write( "\t<param name=\"CLIENT_ID\" value=\"\">" );
                    document.write( "\t<param name=\"BLANK_WINDOW\" value=\"true\">" );
                    document.write( "\t<param name=\"APPLICATION\" value=\"<%= id[1] %>\">" );
                    document.write( "\t<param name=\"LOCALE\" value=\"<%= LOCALE %>\">" );
                    document.write( "\t<param name=\"EPMLASTMODIFIED\" value=\"<%= epmLastModified %>\">" );
                    document.write( "</APPLET></td>" );
          </SCRIPT>
     </HEAD>
     <BODY style="background-color: #FFFFFF">
          <table align="center">
               <tr>
                    <SCRIPT><!--
                         insertLink( );
                    //--></SCRIPT>
               </tr>
          </table>
     </BODY>
</HTML>this will lanch the applet...
now my problem is i have to close this applet..while the user signing out from the main application...
and here is the logout.jsp
<%
     com.inventx.Utilities.ClientContext context = getClientContext( request );
     if ( request.getParameter( "Confirm" ) != null && request.getParameter( "Confirm" ).equals( "Yes" ) ) {
          try{
               //context.getSession().executeMethod(this, "createFolder");
               System.out.println("Context in logout jsp---"+context.getUserID());
               System.out.println("Context in logout jsp---"+request.getRemoteAddr());
               com.inventx.terminateClient.Terminate terminate = new com.inventx.terminateClient.Terminate();
          terminate.sendInstructionToClient(context,request.getRemoteAddr(),session.getAttribute("USER_ID").toString());
               //context.getSession( ).executeMethod( this, this, "receiveInstruction", false, null );
          } catch (Exception e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          session.invalidate( );
          response.sendRedirect( ".." );
     } else {
%><html>
     <head>
          <title>Inventx: Logout</title>
     </head>
     <body bgcolor="black" text="white">
          <form enctype="application/x-www-form-urlencoded" method="post">
               <input type="hidden" name="Confirm" value="Yes">
               <table align="center">
                    <tr>
                         <td><img src="../images/login.gif" border="0"></td>
                    </tr>
                    <tr>
                         <td> </td>
                    </tr>
                    <tr>
                         <td align="center"><table>
                              <tr>
                                   <td>Are you sure you wish to logout of the InventX ePM System?</td>
                              </tr>
                              <tr>
                                   <td><input type="submit" value="Logout"> <input type="button" value="Cancel" onClick="history.back( )"></td>
                              </tr>
                         </table></td>
                    </tr>
               </table>
          </form>
     </body>
</html><%
%>pls help me in this..
Thanks in advance..
Sathya

Then the answer is no. The Applet doesn't exist until it is instanciated by the browser so the JSP running on the server can not pass Java Objects. You can either set up a javascript array, set the parameter tags in the HTML Applet tag or have the Applet open a URLConnection back to the server.

Similar Messages

  • How to import and display an applet from JSP

    i m using netbeans 5.0
    i have class named myapplet.class
    and jsp named myjsp.jsp
    now i want to access(import) this myapplet.class from jsp
    also i want to display this applet from this jsp
    i am able to do either thing but not both
    so please help me it is so urgent and important for me bcoz
    i have to complete my project as early as possible
    Thanks in advance

    my jsp source file page path is D:\Reliance
    project\WebApplication3\web\
    and classes path is D:\Reliance
    project\WebApplication3\build\web\WEB-INF\classes\
    so problem is that if i want to use myapplet.class
    then i have to put my class in D:\Reliance
    project\WebApplication3\build\web\WEB-INF\classes\
    location
    but at that time i am not able to display this applet
    on my jsp
    if i put my myapplet.class in
    D:\Reliance project\WebApplication3\web\ then i m
    able to display
    applet but not able to access(import) this class
    hope you will got the problem!!!
    thanks for your reply !!!try to set the path of your applet on jsp something like this
    "WEB-INF/classes/myclass.class"

  • Passing array values to an Applet from JSP

    Hi,
    I have a JSP page in which I've arrays that are populated from a DB. I want to pass these array values from the JSP page to a Applet in the same page. Is it possible ?
    Any help will be appreciated.
    :-) Praveen

    Then the answer is no. The Applet doesn't exist until it is instanciated by the browser so the JSP running on the server can not pass Java Objects. You can either set up a javascript array, set the parameter tags in the HTML Applet tag or have the Applet open a URLConnection back to the server.

  • Applet not loading from jsp

    using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
              the compiled applet UploadScreenshots.class is bundled into a web app
              file named roach.war and resides in the following directory in the war
              file:
              WEB-INF/classes/roach/web/applets/UploadScreenshots.class
              trying to deploy applet from jsp with following plugin definition in
              jsp:
              <jsp:plugin type="applet"
              code="roach.web.applets.UploadScreenshots.class"
              codebase="/classes/"
              height="200" width="500"
              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:fallback>
              <font color=#FF0000>Sorry, cannot run java applet!!</font>
              </jsp:fallback>
              </jsp:plugin>
              when executing the jsp from the browser, get the following error
              message when browser attempts to load the applet:
              Exception: java.lang.ClassNotFoundException:
              roach.web.applets.UploadScreenshots.class
              however, when codebase attribute is removed from plugin element
              definition and the compiled applet class (and its directory) is moved
              to the same directory as the jsp, the applet loads and works without
              any problems!
              what's up???
              

    joseph,
              thanks for the follow up. i still was not able to load the applet from
              the web-inf directory so i just jarred up the applet, stuck the jar
              file in the jsp directory, and added the archive attribute to the
              jsp:plugin element. everything loads and works fine. maybe i'll
              revisit loading applets from the web-inf directory later. thanks
              again.
              rick
              "Joseph Nguyen" <[email protected]> wrote in message news:<[email protected]>...
              > Rick,
              >
              > Take a look here real quick:
              > http://e-docs.bea.com/wls/docs70/jsp/trouble.html#error-plugin. It's not
              > much, but if it doesn't help please open a case with BEA Support via
              > WebSupport portal here http://support.bea.com/welcome.jsp as there is no
              > existing issue in our bug db right now with the jsp:plugin tag.
              >
              > Regards,
              > Joseph Nguyen
              > BEA Support
              >
              > "rick bryant" <[email protected]> wrote in message
              > news:[email protected]...
              > > using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
              > >
              > > the compiled applet UploadScreenshots.class is bundled into a web app
              > > file named roach.war and resides in the following directory in the war
              > > file:
              > > WEB-INF/classes/roach/web/applets/UploadScreenshots.class
              > >
              > > trying to deploy applet from jsp with following plugin definition in
              > > jsp:
              > > <jsp:plugin type="applet"
              > > code="roach.web.applets.UploadScreenshots.class"
              > > codebase="/classes/"
              > > height="200" width="500"
              > > 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:fallback>
              > > <font color=#FF0000>Sorry, cannot run java applet!!</font>
              > > </jsp:fallback>
              > > </jsp:plugin>
              > >
              > > when executing the jsp from the browser, get the following error
              > > message when browser attempts to load the applet:
              > > Exception: java.lang.ClassNotFoundException:
              > > roach.web.applets.UploadScreenshots.class
              > >
              > > however, when codebase attribute is removed from plugin element
              > > definition and the compiled applet class (and its directory) is moved
              > > to the same directory as the jsp, the applet loads and works without
              > > any problems!
              > >
              > > what's up???
              

  • Calling applet in JSP

    i have already made an applet code for my program....now i want to make it flexible by using JSP...
    Should i write the code from scratch (for JSP)....or is there some way i can call the applet from JSP ...
    Please suggest.

    see if this thread helps you
    http://forum.java.sun.com/thread.jsp?forum=45&thread=166514
    Cheers
    Khalid

  • Calling applet in jsp file

    Hi al,
    When we try to invoke an applet from jsp, applet class is not able to initialize (not able to load the class)
    Exception got in java console as follows :
    Load: class SignedAppletDemo.class not found.
    java.lang.ClassNotFoundException: SignedAppletDemo.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
    We are using <jsp:plugin> tag for access applet from jsp in Oracle Appserver.(OC4J).
    If anyone have any idea on the above,please let us know. Please pass on steps to follow for access applet from jsp file.
    Thanks,
    Rajkumar

    Review
    URL.openConnection()
    and HttpURLConnection

  • How to load java class from jsp page?

    hi all!
    Does anyone know how to load java class from jsp page?
    I try to load java class from jsp page.
    Is it possible to load java class fom jsp page?
    thanks and have a good day!

    What I mean is How to load/open java class file from jsp page?
    I think we can open Applet from jsp page by using
    <applet code=helloApplet.class width=100 height=100>
    </applet>
    but, how to open java class which is an application made by Frame?
    thanks and have a good day

  • How to run the applet in JSP

    hi,
    im trying to run an applet from JSP i am not able to see the output of the applet on the JSP page?
    <APPLET CODE="com.metro.supex.admin.SampleApplet.class" HEIGHT="25" WIDTH="125" ALIGN="bottom"></APPLET>
    this line of code is included in JSP to run the applet, it is giving error
    java.lang.ClassNotFoundException:com.metro.supex.admin SampleApplet
    please can you help me in this matter.

    And don't use the applet tag, use object embed.
    use the htmlconverter in the jdk bin dir to convert an applet tag.

  • ClassFormatError when attempting to load an applet from within a JSP

    Greetings everyone.
    I have a problem that i seem unable to solve.
    I've created a web application. I'm using Java 1.4.2_05 and Tomcat. Right now i'm trying to load an applet from a JSP and i'm getting an error that, try as i might, i can't understand why it happens.
    Here is some detailed info:
    The applet's code:
    package smpb.myapp.controllers;
    import java.applet.Applet;
    import java.awt.Graphics;
    public class GUIApplet extends Applet
         public void init()
         public void stop()
         public void paint(Graphics g)
                  g.drawString("Hey hey hey",20,20);
               g.drawString("Hellooo World",20,40);
    The JSP's code:
    <%@ page language="java"
                   import="java.util.*"
                   session="true" %>
    <%
         String name = (String) request.getSession().getAttribute("userName");
    %>
    <html>
         <head>
              <title>Login</title>
         </head>
         <body>
              <h1><p align="center">Application</p></h1>
              <br>
              Welcome <%= name %>! Thank you for logging in!
              <br><br><br>
              <applet align="middle" code="smpb.myapp.controllers.GUIApplet.class" codebase="./" archive="MyApp_applets.jar">
                   Your browser does not support this feature.
              </applet>
              <br><br>
              <a href='<%=request.getContextPath() + "/LogOut"%>'>Log Out</a><br>
         </body>
    </html>-------------------------------------------
    When i reach this JSP the applet fails to load and i get the following error message at the java console:
    Loading applet ...
    Initializing applet ...
    Starting applet ...
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Last modified time and/or expiration value is not available.  Jar file will not be cached.
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Last modified time and/or expiration value is not available.  Jar file will not be cached.
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
         at sun.applet.AppletPanel.run(AppletPanel.java:298)
         at java.lang.Thread.run(Thread.java:534)
    Exception: java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)-------------------------------------------
    The JSP is in the root directory of the web application's path right along with the jar file. The jar file itself has the following structure:
    Archive:  HelpDesk_applets.jar
      Length     Date   Time    Name
            0  05-17-06 12:17   META-INF/
          106  05-17-06 12:17   META-INF/MANIFEST.MF
            0  05-10-06 17:14   smpb/
            0  05-10-06 17:14   smpb/myapp/
            0  05-12-06 16:50   smpb/myapp/controllers/
          794  05-12-06 17:15   smpb/myapp/controllers/GUIApplet.class
          900                   6 filesNow, i've tried loading the very same jar file that i use in the JSP through a static HTML which is virtually identical to the JSP i presented and everything works just fine. I've checked and rechecked to see if all the permissions to access the jar file were accurate, i checked to see if Tomcat had it's MIME settings correctly configured so that there was no chance that the files were being corrupted during the load (as that is a usual cause for the problem, or so i've gathered) but to no avail. I've searched the web, including these forums, and found similar problems but no conclusive solution. I can't seem to figure out, at all, what could possibly be wrong. Does anyone have any ideas? I've tried to be as thorough as i could from the start, so, any help would be deeply appreciated.

    Hi mshah101,
    This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher)

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

  • Opening and closing an applet or closing a webpage

    Hi,
    i was wondering if it was possible to open an applet from inside one method and close it within another method. I do not seem to be able to do this.
    I have however opened a HTML page that contains the applet and this appears to work fine. Can i, in another method close this HTML page that i opened?
    Cheers,
    Gareth.

    Yes you can, using javascript. What I recommend is to open the new page containing the applet with a call to a javascript function in the page that is running the original applet. Then, call another javascript function that closes the window that was opened. For example
    //this code make a call to the javascript function open_applet
    JSObject obj = new JSObject();
    obj.call("open_applet",null);
    //this code make a call to the javascript function close_applet
    JSObject obj = new JSObject();
    obj.call("close_applet",null);Now, on your html (or jsp) page, just put the following:
    <script>
    var mywindow;
    function open_applet(){
    mywindow = window.open("url","_new");
    function close_applet(){
    mywindow.close();
    </script>
    Hope you can use this! Regards!

  • Programmatically closing a popup from a managed bean

    Hi,
    in the following blog [http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/|http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/]
    the following statement is being made at the end ...
    The JavaScript call is issued as "window.exitPopup()" because the script is called from the page root. You can easily see how the JavaScript can be modified to have "exitPopup" becoming a generic function avoiding hard coded popup ID's as in my example.
    I don't understand how to avoid hardcoded popup ID's. Could someone please explain this to me.
    Thank you
    Bodhy

    Hi,
    thank you. It is working.
    @Timo
    The closePopup function in your comment has the variable popupId. That made me wonder, if it is possible to set this variable in my jspx page.
    I made a workaround by defining a new variable called popupId with getter and setter methods and using the setActionListener to set that popupId. After that I was calling the closePopup() function. Do you know a better way doing this?
    @Frank
    I was also reading through Frank's blog about JavaScript [http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/|http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/] , trying to find a solution to call JavaScript functions with variables (defining these variables in my jsp page). Is this possible?
    Thank you
    Bodhy

  • Passing value from JSP to JApplet

    Hello,
    I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page
    to a JApplet,
    and the parameter passed through JSP should be displaed in the JTextArea.
    It would be kindful if any of you could help.
    Thanks
    Sanam

    hello,
    thanks for reply.
    I know how to pass parameters from html,
    I want to pass values from jsp page,
    and i dono how to do it, may be we cann pass values through url connection but i dono how.
    if anone knows plz help me in solving this.
    i hvae posted my applet code.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    <applet code = "DocApplet" width = 500 height =5000>
    </applet>
    public class DocApplet extends JApplet
         private JPanel jp;
         private Container cp;
         private JTextArea jt;
         private JToolBar tb;     
         private JScrollPane sp;
         private String annotation;
         private String url;
         private Connection con;
         private Statement stmt;
         public void init()
              jp = new JPanel();
              cp = getContentPane();
              jt = new JTextArea();
              tb = new JToolBar();
              sp = new JScrollPane(jt);
              repaint();
         public void start()
              jp.setLayout(new BorderLayout());
              jp.add(tb, BorderLayout.NORTH);
              jp.add(sp, BorderLayout.CENTER);
              jt.setBackground(Color.BLACK);
              jt.setForeground(Color.WHITE);
              setContentPane(jp);
              addButtons(tb);
              repaint();
         public void run()
              repaint();
         public void paint()
         private void addButtons(JToolBar tb)
              JButton button = null;
              button = new JButton("Save");
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
              tb.add(button);
    }

  • Deploying an applet with jsp

    Hi,
    I am trying to make an applet accessible within a JSP, but it won't load, I have the following error in my browser's Java console:
    java.lang.ClassFormatError: Incompatible magic value 1013461310 in class file MyApplet
    The applet is in the same directory of the JSP that calls it wich is the root of the project. Here's the code in the JSP:
    <jsp:plugin type="applet" codebase="." code="MyApplet.class" width="408" height="410" >
    <jsp:fallback>
    Plugin tag OBJECT or EMBED not supported by browser.
    </jsp:fallback>
    </jsp:plugin>
    There are no preblems when I call the applet from a usual html file with the applet tag.
    What am I doing wrong?

    in order to pass information from your applet to the JSP page, you could call your JSP page from applet.
    you may for example open a new browser window whitch is redirected to your JSP page, and user responses are sent as parameter concatanated to the URL
    or you could use post instead of get, anyhow, the idea is that you try to connect to your JSP's url and send these user responses as well...
    but if you would like the page, on which the applet is, to change according to user response, then you cannot do that (if you are not changing content of forms -- that can be done with LiveConnect <- calling javascript from java applet)
    i hope you get some ideas.
    L.

  • Re: Including Applet in JSP with Dynamic input| Help needed

    Hi All,
    We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application in Portal page.
    We can do that once we can embed the result of the standalone application which generates applet based on the input it gets from the current application's database.
    If it was static we could have used jsp:plugin but, it fails in our case!
    We are clueless as to how to embed an applet which will pick up the data dynamically.
    Can anyone of you help me in this regard?
    Thanks & Regards
    Arthi

    Hi Arthi,
    I think this might help you to get an idea why jsp:plugin tag does not allow for dynamically called applets.
    <jsp:plugin type=applet height="100%" width="100%"
    archive="myjarfile.jar,myotherjar.jar"
    codebase="/applets"
    code="com.foo.MyApplet" >
    <jsp:params>
    <jsp:param name="enableDebug" value="true" />
    </jsp:params>
    <jsp:fallback>
    Your browser does not support applets.
    </jsp:fallback>
    </jsp:plugin>
    The plugin example illustrates a <html> uniform way of embedding applets in a web page. Before the advent of the <OBJECT> tag, there was no common way of embedding applets. This tag is poorly designed and hopefully future specs will allow for dynamic attributes (height="${param.height}", code="${chart}", etc) and dynamic parameters. Currently, the jsp:plugin tag does not allow for dynamically called applets. For example, if you have a charting applet that requires the data points to be passed in as parameters, you can't use jsp:params unless the number of data points are constant. You can't, for example, loop through a ResultSet to create the jsp:param tags. You have to hand code each jsp:param tag. Each of those jsp:param tags however can have a dynamic name and a dynamic value.
    I think you can get better information if you look in to the below link
    http://pdf.coreservlets.com/CSAJSP-Chapter12.pdf
    Many Thanks,
    Ramesh.

Maybe you are looking for