Calling a applet in jsp

While running the jsp I am getting following alert box and rad will exit please any one help for this .
The alert box contains :- The procedure entry point JVMGetMethodIxLocalsCount@12 could not be located in the dynamic link library jvm.dll.
Please help me for the sujjestion.
Thanks in advance.

You use an HTML Applet tag:
http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html

Similar Messages

  • 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

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

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

  • Calling applet in jsp page

    i have made a line graph in applet and i want to call that applet in my jsp project's page....
    <jsp:plugin type= "applet" codebase="." code= "ibill.lineGraph.class" width="400" height="400">
    </jsp:plugin>
    but it dosnt show the applet and give error of Loading java applet is failed....
    can anyone help me please
    with regards

    In one of my project i tried to load applet using the <jsp:plugin> tag but failed. Since i had less time so i have not done the R&D instead i called the applet as
    <applet id="MyApplet" code="MyApplet.class\" archive=\"MyApplet.jar\" width=5 height=3/>and it worked fine for me. You can try this method.
    NOTE: My applet jar file was in the same directory of my JSP page
    Message was edited by:
    diptaPB

  • Calling applets in jsp

    Hi All,
    When I tried to call an applet in my JSP page ,it says like " java plugin not installed properly"...I don't know what is wrong with my installation.I'm using jswdk server.
    Could anyone help me please....
    Would Appreciate if I get help.
    Subha.

    Hi
    A plugin is used as a substitute to the browser VM as somtimes the client browsers may not have the right version of the VM to run some components like Swing etc.
    The way you handle this in JSPs is that you use the <jsp:plugin> option . Any good tutorial on JSps will give you information on this.
    One place to start would be:
    The <jsp:plugin> directive takes care of generating all the HTML code necessary to embed and activate a Java applet. Consider the following example:
    <html>
    <head>
    </head>
    <body>
    <jsp:plugin type="applet" code="NewsTicker.class" name="newsticker"
    height="100" width="100">
    <jsp:params>
    <jsp:param name="x" value="10"/>
    <jsp:param name="y" value="25"/>
    <jsp:param name="cx" value="90"/>
    <jsp:param name="cy" value="114"/>
    <jsp:param name="bgcolor" value="102,102,153"/>
    <jsp:param name="textcolor" value="0,0,0"/>
    <jsp:param name="hilitecolor" value="255,0,0"/>
    </jsp:params>
    <jsp:fallback>Oops! Something bad happened and I can't display this
    applet</jsp:fallback>
    </jsp:plugin>
    </body>
    </html>
    The code above sets up the applet contained in "NewsTicker.class", and passes it a bunch of name-value pairs of parameters. The <jsp:param> tag is used to pass these
    parameters to the applet, while the <jsp:fallback> directive contains error text, in the event that the applet cannot be found or displayed.
    When JSP compiles and renders the page, the code above is automatically converted to its HTML equivalent.
    <html>
    <head>
    </head>
    <body>
    <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#V
    ersion=1,2,2,0">
    <PARAM name="java_code" value="NewsTicker.class">
    <PARAM name="type" value="application/x-java-applet;">
    <PARAM name="cy" value="114">
    <PARAM name="cx" value="90">
    <PARAM name="bgcolor" value="102,102,153">
    <PARAM name="hilitecolor" value="255,0,0">
    <PARAM name="y" value="25">
    <PARAM name="x" value="10">
    <PARAM name="textcolor" value="0,0,0">
    <COMMENT>
    <EMBED type="application/x-java-applet;" width="100" height="100"
    pluginspage="http://java.sun.com/products/plugin/"
    java_code="NewsTicker.class"
    cy=114
    cx=90
    bgcolor=102,102,153
    hilitecolor=255,0,0
    y=25
    x=10
    textcolor=0,0,0
    >
    <NOEMBED>
    </COMMENT>
    Oops! Something bad happened and I can't display this applet
    </NOEMBED></EMBED>
    </OBJECT>
    </body>
    </html>
    The above sample was taken from the two links shown below.
    - http://home.netscape.com/assist/net_sites/embed_tag.html
    - http://www.devshed.com/Server_Side/Jserv/JSP8/print.html
    For further reading the documentation that comes along with your application server should provide ample guide to using jsp:plugin with your applets.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

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

  • 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

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

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

  • Applets in Jsp generates ClassNotFoundException

    hi there,
    I face a problem of calling applets in Jsp.
    The code to call applet is:
    <jsp:plugin type="applet"
    code="core.TextApplet"
    width="475" height="350">
    </jsp:plugin>
    And I have a 'core' directory in source packages and TextApplet.java in core directory.Wehn I run the TextAppletJSP ,it gives me an error message in applet display area:
    Exception:java.lang.ClassNotFoundException:core.TextApplet
    Anyone who help me for this problem plz.
    thanks for your help.
    gezahegn

    I am also getting out of memory errors, and Tomcat keeps increasing in memory on every page refresh. Please let me know if you get this resolved how you did it. Thanks.

  • Applets in JSP --- I'm going crazy!

    I am using an applet I have written on a JSP page which I have also written.
    Using: Win2K, IE6, J2SDK 1.4, Tomcat 4.0.3
    I have several problems. Even if you can answer only one of them, it will be a great help!
    Here is how I'm adding the applet.
    <jsp:plugin type="applet" code="RawData.class" name="rawData" jreversion="1.4" width="700" height="55" >
    <jsp:fallback>
    Plugin tag OBJECT or EMBED not supported by browser.
    </jsp:fallback>
    </jsp:plugin>
    </TD>
    Problem 1) I can only get the applet loaded if the applet class file is in the same folder as the JSP file. Anything else, and I get a ClassNotFoundException.
    Can't get the CODEBASE to do anything for me at all.
    I set my codebase="/RawData/classes", but makes no difference.
    I then tried Jarring my applet and placing RawData.jar in the same folder with the JSP. But also no go. I then set codebase="RawData.jar", but guess what... Nothing.
    So my questions are: How do I get the applet to load from the applet.class files using codebase if the applet files are in a sub folder? And how do I get my applet to load from a Jar?
    Problem 2) Once this applet is loaded, I have the biggest nightmare imaginable to get the browser to load a new version after I have updated it. And trust me, there is not and old version of the applet.class in my ClassPath. In fact there is not another copy of the applet.class file anywhere on my PC. I made sure. I have also disabled the Java Plugin Cache option, and deleted my temporary internet files with Explorer. But the thing persists in loading the old version from somewhere. What the heck do I do? I fear this is driving me insane.. :)
    Problem 3) I need the HTML components to interact with the applet.
    When I do a call to an applet function passing no parameters it works fine, and I get the value back, like this:
    <SCRIPT LANGUAGE="VBScript">
    <!--
    Sub btnGetID1_OnClick
    document.all("id1Pattern").innerText = document.rawData.getSelection()
    End Sub
    -->
    </SCRIPT>
    But when I do a function call, passing parameters, the scrip just stops working altogether, like this.
    <SCRIPT LANGUAGE="VBScript">
    <!--
    Sub id1Pos_onfocus
    document.rawData.setSelection(5, 10)
    End Sub
    -->
    </SCRIPT>
    Why is this. What am I doing wrong.
    And better yet... Is there a way of manipulating the HTML components from within JSP scriplet <% ... %>?
    Please if anyone can help... It will be greatly appreciated. I am at a loss!
    Thanx. Quigrim

    Quigrim wrote:
    Problem 1) I can only get the applet loaded if the applet class file
    is in the same folder as the JSP file. Anything else, and I get a
    ClassNotFoundException. Can't get the CODEBASE to do anything for me
    at all.Set CODEBASE to point to the relative directory where your code is. If it is in the same directory as the JSP then CODEBASE="."; if it is in a sub-directory 'classes' then CODEBASE="classes".
    Problem 2) Once this applet is loaded, I have the biggest nightmare
    imaginable to get the browser to load a new version after I have
    updated it. Close ALL browser windows - you have to force the plugin JVM to re-initialise - I've not found any other way to do it.
    Hope these help you.
    Phil.

  • Swing Applet in JSP: problem with fetching data from database

    i am facing a problem while fetching data from database using Swing Applet plugged in a JSP page.
    // necessary import statements
    public class NewJApplet extends javax.swing.JApplet {
    private JLabel jlblNewTitle;
    private Vector vec;
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    NewJApplet inst = new NewJApplet();
    frame.getContentPane().add(inst);
    ((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
    frame.pack();
    frame.setVisible(true);
    public NewJApplet() {
    super();
    initGUI();
    private void initGUI() {
    try {
    this.setSize(542, 701);
    this.getContentPane().setLayout(null);
    jlblTitle = new JLabel();
    this.getContentPane().add(jlblTitle);
    jlblTitle.setText("TITLE");
    jlblTitle.setBounds(197, 16, 117, 30);
    jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
    jlblNewTitle = new JLabel();
    this.getContentPane().add(jlblNewTitle);
    Vector vecTemp = getDBDatum(); // data fetched fm DB r stored here.
    jlblNewTitle.setText(vecTemp.get(1).toString());
    jlblNewTitle.setBounds(350, 16, 117, 30);
    jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
    } catch (Exception e) {
    e.printStackTrace();
    }//end of initGUI()
    private Vector getDBDatum() {
    // fetches datum from oracle database and stores it in a vector
    return lvecData;
    }//end of getDBDatum()
    }//end of class
    in index.jsp page i have included the following code for calling this applet:
    <jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
    width="600" height="300">
    <jsp:fallback>Could not load applet...</jsp:fallback>
    </jsp:plugin>
    if i view it in using AppletViewer it runs perfectly and display the data in JLabel. (ie, both jlblTitle and jlblNewTitle).(ie, DATA FETCHES FROM db AND DISPLAYS PROPERLY)
    BUT IF I CLICK ON INDEX.JSP, ONLY jlblTitle APPEARS. jlblnNewTitle WILL BE BLANK(this label name is supposed to fetch from database)
    EVERY THING IS DISPAYING PROPERLY EXCEPT DATA FROM DATABASE!!!
    i signed the applet as follows :
    grant {
    permission java.security.AllPermission;
    Can any body help me to figure out the problem?

    This is the Swing Applet java code
    import java.awt.Dimension;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Vector;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.JScrollPane;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTree;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.SwingConstants;
    public class HaiApplet extends javax.swing.JApplet {
         private JLabel     jlblTitle;
         private JLabel     jlblNewTitle;
         private Vector     vec;
         * main method to display this
         * JApplet inside a new JFrame.
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              NewJApplet inst = new NewJApplet();
              frame.getContentPane().add(inst);
              ((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
              frame.pack();
              frame.setVisible(true);
         public HaiApplet() {
              super();
              initGUI();
         private void initGUI() {
              try {               
                   this.setSize(542, 701);
                   this.getContentPane().setLayout(null);
                        jlblTitle = new JLabel();
                        this.getContentPane().add(jlblTitle);
                        jlblTitle.setText("OMMS");
                        jlblTitle.setBounds(197, 16, 117, 30);
                        jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
                        jlblTitle.setHorizontalAlignment(SwingConstants.CENTER);
                        jlblTitle.setForeground(new java.awt.Color(0,128,192));
                        jlblNewTitle = new JLabel();
                        this.getContentPane().add(jlblNewTitle);
                        Vector vecTemp = getDBDatum();
                        jlblNewTitle.setText(vecTemp.get(1).toString());
                        jlblNewTitle.setBounds(350, 16, 117, 30);
                        jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));     
              } catch (Exception e) {
                   e.printStackTrace();
         }//end of initGUI()
         private Vector getDBDatum() {
              Vector lvecData = new Vector(10,5);
              Connection lcon = null;
              Statement lstmt = null;
              ResultSet lrsResults = null;
              String lstrSQL = null;
              String lstrOut = null;
              try {
                   OmmsDBConnect db = new OmmsDBConnect();
                   lcon = db.connectDb();
                   lstmt = lcon.createStatement(lrsResults.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   lstrSQL = "select DT_ID from P_DATATABLES";
                   lrsResults = lstmt.executeQuery(lstrSQL);        
                   int i = 0;
                   lrsResults.last();
                   int length = lrsResults.getRow();
                   System.out.println(length);
                   lrsResults.beforeFirst();
                   int recCount = 0;
                   while (lrsResults.next()) {
                        recCount++;
                        lvecData.addElement(new String(lrsResults.getString("DT_ID")));
                   //     System.out.println("ID :  " + lrsResults.getString(1));
                        i++;
                   }System.out.println("here 3 out fm while");
              catch(SQLException e) {
                   System.out.print("SQLException: ");
                   System.out.println(e.getMessage());
              catch(Exception ex) {
                   lstrOut = "Exception Occured " + ex.getMessage();
              finally {
                   try {
                        lrsResults.close();
                        lstmt.close();
                        lcon.close();
                        System.out.println("[DONE]");
                   catch(Exception e) {
                        System.out.println(e);
             }//end of finally
              return lvecData;
         }//end of getDBDatum()
    }//end of classOfcourse the above code compiles and runs well. in Applet Viewer
    I plugged the above Swing Applet in a JSP page index.jsp
    <jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
                   width="600" height="300">
         <jsp:fallback>Could not load applet...</jsp:fallback>
    </jsp:plugin>Every thing is working fine in AppletViewer...But if i view this in any browser, then only the jlblTitle is displaying. jlblNewTitle is not displaying(this label name is actually fetching from thedatabase)
    can any body help me regarding this matter.? Thx in Advance.

  • How to pass values between applet and jsp

    I have a jsp calling an applet which needs to return value to the calling jsp based on the action. Once the applet returns value to the calling jsp, I need to put that value into the session so that I can use it for the other pages. Could anyone have suggestion how to do it. I am new to applet development. Appreciate your help.

    Why does it have to send the value back via the same JSP? Why not create a servlet to take input from the applet?

Maybe you are looking for

  • What user exit can add / delete lines on a sales order?

    Hi experts - We are going to be using a 3rd party to give us pricing, so we need to make a call for each line item to get prices.  This may give us free goods, so we will need to add / remove lines from a sales order. Any ideas what exit will allow u

  • Openzone, Mac OS x and PS3

    I am a BT Total Broadband customer and have the free BT Openzone minutes. Got a really strong Openzone signal in my city apartment. I can get the Macbook to find the Openzone and tick the box. But then Safari or Firefox won't take me to the load page

  • Albums/folders within albums

    Is there a way to create a folder/album within an album? I realize I can't do it in events without creating a new event. I have a bunch of work photos that are separated into events and I would like to be able to put them all in an album named Work P

  • Can not Export Metadata

    Hi everyone, i have a small problem and i really need your help now i tried to export metadata of my application from enterprise manager but it gives this error Error      Export Operation - Failed. MDS-00589: Error occurred while creating the final

  • I've transferred my old number to my new iphone 5, but it is still showing the original number in my contacts.  How do I change this?

    I've transferred my old no to my new iphone 5, but it is still showing the original number in my contacts.  How do I change this?