Applet started in a seperate JSP

Hi all,
Can anyone help me out of this problem...
I have 2 JSP files. say 1.jsp and 2.jsp.
In 1.jsp I initiate an applet using the <jsp:plugin> tag and doesnt want to start the applet running there... so what I do is I suspend the applet untill my 2.jsp is executed. When my 2.jsp is opened, then my applet should start running... how do I do this??? Please let me know this at the earliest... my applet is hanging around like an orphan...
thanx in advance..
Balu.

oops.. forgot one point here... I am using frames n these 2 paes are in the main frame n I try to execute the applet in the header frame which is above and common to the main frame.. irrespective of the pages in his frame.
thanx,
balu

Similar Messages

  • Applet to Applet communication between two seperate threads and jsp pages

    Hi,
    have two java applets running on two separate jsp pages. I am trying to have one applet talk to the other applet. I have tried putting the applets in a static hashtable, but I found out (through trial and error) that the memory is not shared between the applets. Needless to say the appletcontext object will not work as well. I have also tried to put the applet threads into a thread group, but it seems that the second applet can't find the first applet's threads. Is there a funky way that I need to create the threads for the threadgroup? Is there a way or type of object that I can use that will share the static memory between plugins? I am using 1.6 in IE. Or am I looking at this wrong and there is an easy way to do this and I am not seeing it.
    Thanks,
    Marc

    Hi Mylene,
    I hope I have understood your problem correctly. I can try to give you a tip. The times I've had to do a pop-up, for instance to show details or a part of the data in a table, I call a javascript function with the required parameters (an ID for details or an array of rows) when the button is pressed or a link is clicked. The function then builds a URL with all the paremeters and uses it to call the standard window.open function. After that the request is handled "as usual", ie as if you didn't actually do a pop-up but simply displayed a new page. The content of the pop-up is a jsp with all the required code to build the table and/or display the data. The contents of the table or data are retrieved with the help of the parameters sent.
    I'm not sure if the portal kit provides some kind of standard functionality for this, but in the cases I've worked with J2EE solutions this has been the most common way of solving the problem.
    I hope this helps.
    kind regards,
    Dionisios

  • Change "Applet Started" in status line?

    Hello,
    I am trying to override the browser's standard "Applet Started" "Applet Loaded" messages...
    One of the reasons is that IE does not display Applet name at all, while Firefox shows the class path of the Applet name...
    I want it to be uniform...
    After lots of research I found this
    http://www.jguru.com/faq/view.jsp?EID=487929
    where they explain that
    getAppletContext().showStatus("");
    would help me do this...But it is not working for me.
    I am inserting it in the applet class right after init but nothing happens.
    Could someone help me out where I have to inssert this code?
    Cheers,
    Gyuri

    Hello,
    I am trying to override the browser's standard
    "Applet Started" "Applet Loaded" messages...
    One of the reasons is that IE does not display Applet
    name at all, while Firefox shows the class path of
    the Applet name...
    I want it to be uniform...
    After lots of research I found this
    http://www.jguru.com/faq/view.jsp?EID=487929
    where they explain that
    getAppletContext().showStatus("");
    would help me do this...But it is not working for
    me.
    I am inserting it in the applet class right after
    init but nothing happens.What do you mean by right after init( )?Put it inside paint( )

  • Using CREATE PROCESS and START PROCESS in a JSP

    Hi,
    I have built a simple JSP page. I want to call my workflow program from this page.
    How should I use the CREATE PROCESS() AND START PROCESS() inside the JSP page?
    Also I want to get the value entered in the text field (which will be a hidden field) to be passed to the ITEM_ATTRIBUTE, which I have defined in my program. How can this be achieved?
    Please give me the syntax for this.
    Please find below the JSP page
    =========================================================
    <%@page import= "java.util.Date" %>
    <script language="javascript" src="ibeCButton.js"> </script>
    <html>
    <head>
    <title>First Page</title>
    </head>
    <body>
    <H3>Today is:
    <%= new java.util.Date() %>
    <INPUT TYPE="text" NAME="CART_ID">
    <INPUT TYPE="submit" onclick = >
    </H3>
    </body>
    </html>
    ==========================================================
    To use LAUNCHPROCESS in JSP, the following is the syntax.
    public static boolean launchProcess
    (WFContext wCtx,
    String itemType,
    String itemKey,
    String process,
    String userKey,
    String owner)
    Should WFContext have the connection information of the DB.
    If I pass only the WFContext and itemType attributes are they enough? Please let me know.
    Thanks

    There are two options.
    1. Good one.
    Include wf*.jar files in your system CLASSPATH. Use oracle.apps.fnd.wf.engine.WFEngineAPI class to access engine APIs. You would need to pass WFContext for which you need WFDB.
    You basically created WFDB with username, password and connect string. Pass it to WFContext and use it for all Workflow Engine APIs.
    2. OK one.
    You can get JDBC connection using the default mechanism that your custom Java and JSP code could be using. Call the PLSQL procedures WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess over JDBC.
    Anyways option 1 makes life easier.

  • Applet Started in IE but no Form

    Hi,
    In Forms 10g when I run form built with Forms 6i then IE launches and shows nothing just says Applet Started in Status Bar.
    Forms built with 10g are running normally in IE.
    Thanks.

    Hi ,
    It's somehow confused....
    In Forms 10g when I run form built with Forms 6i ...Did you run a form 6i without compiling it in Forms10g...???
    In Forms 10g when I run form built with Forms 6i then IE launches and shows nothing just says Applet Started in Status Bar
    Forms built with 10g are running normally in IE
    Eventually... the forms 6i - without have been compiled to Forms10g- are not displayed...????
    Please , clarify your problem .. in a simpler way....!!!!
    My greetings
    Simon

  • Applet started with blank page

    Hi all,
    I just installed OAS 10gr2 10.2.0.2 and after configure webutility
    when i try to open forms the browser gives me Applet started but the page is blank
    i am following the document 566628.1 and running the form utility "webutilconf" and there is no errors
    and every thing in its place
    but when i put baseHTMLjinitiator=basejini.htm .. not (webutiljpi.htm nor webutiljini.htm)
    the forms run ok but without webutil functions .. if i run webutil functions it gives me "oracle.forms.webutil.file.filefunctions" message
    any Idea
    by the way
    1.no planing for upgrade or transfer to jre
    2.we already have another server running perfectly with the same configurations
    OS Win 2003 server
    Db 11g
    OAS 10.2.0.2
    Edited by: M.Taher on 16/01/2012 10:09 م

    M.Taher wrote:
    thank you for your time but my issue is
    if i put baseHTMLjinitiator=basejini.htm at formsweb.cfg it works fine but without "webutil" functions
    ,so when i change that parameter to any thing else (like webutiljpi.htm or webutiljini.htm ) it gives me blank page
    so i think it is not a jinit. issue it is about webutil configurations , but i follow a doc from oracle support and every thing in its place
    "it is not my first time to install and configure it ,but first time to face that problem"hmm. try the following code under u'r configuration name like config=test
    WebUtilArchive=frmwebutil.jar,jacob.jar
    baseHTMLjinitiator=webutiljini.htmalso webutil configuration like
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm---change as your need
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilTrustInternal=truethen what is the out put ?
    Plz post your configuration
    hope this will help you
    Edited by: HamidHelal on Jan 17, 2012 2:46 PM

  • Applet start() not called in multithreaded use, when using JAVA1.5

    Hi ALL,
    I am facing problem such that,
    applet start() is not getting called in multithreaded use, when I am using JAVA1.5 for jdk(<=1.4)versions.
    If , I give explicit call to applet.start() inside applet.init() , the applet is loaded, else it hangs.
    code snippet.
    init()
    //Created thread
    thr = new inputthread();
    //some other tasks
    start()
    boolean x= true;
    generate()
    {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    And it's the same behaviour in JRE 1.5 update 8 as well.

  • Applet start() running twice, in Microsoft IE 5.5.

    It seems to me that that the Applet start() method is running twice, on Microsoft IE 5.5, Microsoft Java (with no service pack�s). Does someone reconice this problem ?
    (I know that people should not use Microsoft Java, but I cannot control the behavior of the users).
    Best Regards.

    Well, you can live with it if stop is not being called
    between both start calls. You could simply set a flag
    on the start and if it's set return from start.. and
    reset the flag in stop.
    static boolean started = false;
    public void start() {
    if(started) return;        
    started = true;
    super.start();
    ... rest of start 
    public void stop() {-------------------------------------
    ** Don't do this. It is unsafe and will crash.
    See http://java.sun.com/docs/books/tutorial/post1.0/preview/threads.html
    super.stop(); --------------------------------------
    started = false;
    Otherwise the Javascript idea would work. ------------------------------------------------------------------------------
    Hello,
    the old NS 1.1.5 JVM did this as well. The cause is a race and even worse,
    stop/start/run can be called in multiple and erronious succession.
    Use the Runnable interface and synchronize to force startup serialization.
    public class MyClass implements Runnable
    boolean initialized = false; // Same concept.
    Object waitObject = new Object();
    Thread task = null;
    public synchronized void init()
    if(!initialized)
    // Do your initialization
    initialized = true;
    notifyall();
    public synchronized void start()
    task = new Thread(this);
    task.start();
    notifyAll();
    public synchronized void stop()
    task = null;
    notifyAll();
    public void run()
    Thread controlThread = Thread.currentThread();
    // Force synch with start / stop
    synchronized(this)
    notifyAll();
    while(controlThread == task)
    // Do your stuff. I fyou have nothing to do, then
    // lazily do a wait() NOT a sleep.
    synchronized(waitObject)
    try
    waitObject.wait(1000); // 200 or 5 X a second
    } // is an unnoticable and responsive
    catch(InterruptedException ie) // poll time If you find a second too slow.
    What this does.
    It not only forces serialization of start, stop, and run, but it also uses the Sun Engineer's
    recommendations pertaining to the deprecation of stop.
    I have mentioned this before but some people didn't belive me.
    Then again some people just like to argue :)
    Because of the deprecation of stop, some JVMs versions handled it differently, and
    you should overwrite overwrite it as prescribed in the aformentioned link.
    (T)

  • Jinitiator "Applet Started"

    We have recently upgraded a 3rd party system we use (and have had no problems with previously) which runs on Forms and Jinitiator as shown below:
    Previous Setup: Jinitiator 1.1.8.16 / Oracle Forms 6i / Oracle 9i
    Upgraded Setup: Jinitiator 1.3.1.28 / Oracle Forms 10 / Oracle 10g
    This new upgraded set up works successfully on around 50% of our machines, although the rest of our users receive only a white screen with an "Applet Started" message on the Internet Explorer status bar. The machines that fail to work all appear to be Windows 2000 machines with IE6, although other machines on Windows 2000 with IE6 work fine, so I don't think there is a compatability issue with any software.
    The Jinitiator console log stops at the following message:
    "RegisterWebUtil - Loading WebUtil Version 10.1.2.2"
    I had thought that permissions could be a problem as some machines have limited access rights, but even when logging in as the machine's administrator account I still get the same white screen and status bar message.
    Does anyone have any ideas as to what could be causing these problems?
    thanks, Jonathan

    Console log with trace level set to 5 is attached below, don't know if it'll be of any use!
    thanks, Jonathan
    Unregistered modality listener
    Doing a join...
    Sending events to applet. STOP
    Removed trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.webutil.common.RegisterWebUtil,0,0,1x1,invalid,layout=java.awt.BorderLayout]
    Sending events to applet. DESTROY
    Sending events to applet. DISPOSE
    Sending events to applet. QUIT
    Done with join ...
    Finding information...
    Releasing classloader: sun.plugin.ClassLoaderInfo@13385d, refcount=0
    Caching classloader: sun.plugin.ClassLoaderInfo@13385d
    Current classloader cache size: 1
    Done...
    Registered modality listener
    Referencing classloader: sun.plugin.ClassLoaderInfo@13385d, refcount=1
    Added trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.webutil.common.RegisterWebUtil,0,0,1x1,invalid,layout=java.awt.BorderLayout]
    Sending events to applet. LOAD
    Sending events to applet. INIT
    Sending events to applet. START
    RegisterWebUtil - Loading WebUtil Version 10.1.2.2
    -----------------------------------------------------------------

  • Where do I get started with OAS and JSP ?

    Where do I get started with OAS and JSP ?
    Resources?
    Please point me in the right direction!
    Post and/or email me at [email protected]

    The simplest way is to read OAS4082 Documentation:
    Developer's Guide: JServlet and JSP Applications.

  • Applet starting to give 'No print service found' exception !!

    My applet access the local default printer on the client. We moved to 1.4.2_08 recenlty and i am using the AccessController class inside the applet to access the local printer...It was working the last time we tested but today it started giving this problem ...
    java.lang.RuntimeException: java.io.IOException: Unable to print: java.awt.print.PrinterException: No print service found.
         at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
         at org.apache.crimson.parser.Parser2.parse(Unknown Source)
         at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
         at org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
         at org.apache.fop.apps.Driver.render(Driver.java:498)
         at PrintApplet$2.run(PrintApplet.java:215)
         at java.security.AccessController.doPrivileged(Native Method)
         at PrintApplet.callMeSucker(PrintApplet.java:201)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)

    sun.plugin.javascript.invoke.JSInvoke.invoke(UMethod called from javascript?
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • Start java application from jsp?

    is there any way i can have a JSP, bean or servlet start a java application on the server? maybe a better question is: what can i do to make sure that some class is always running on my javaserver? im talking about the server app. for a chat program that im making that will be an applet in a JSP page along with a load of other JSP pages that do other things...
    sorry for my incoherence. i usually talk better than this. :)
    Laz

    just replying so the message comes to the top of the forum... can anyone help me here?
    Thanks
    Laz

  • Applet is not opening in jsp

    Hi,
    I am using an applet in my application, which creates charts. But its not opening, its giving exceptions.
    I create jar using jar cvf command.
    After that i aslo sign and verify this jar using jar signer.
    My jsp and this jar file are in the same directory.
    This is the code which is in my jsp for applet.
    <object
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    type="application/x-java-applet;version=1.5">
    <param name="type" value="application/x-java-applet;version=1.5">
    <param name="code" value="com.timer.AppletGenerator.class">
    <param name="codebase" value=".">
    <param name="ARCHIVE" value="PerfMonGUIApplet.jar, jcommon-1.0.0.jar, jfreechart-1.0.0.jar, log4j-1.2.13.jar, itext-1.3.1.jar">
    <param name="strStartTime" value = "<%= strStartTime %>" >
    <param name="strEndTime" value = "<%= strEndTime %>" >
    <param name="GraphPerfMon" value = "<%= strPerfMonPoint %>" >
    <param name="strDateSelected" value = "<%= strDateSelected %>" >
    <param name="ContextPath" value = "<%= strContextPath %>" >
    <param name="strAppServerIPAddress" value = "<%= strAppServerIPAddress %>" >
    <param name="strAppServerPort" value = "<%= strAppServerPort %>" >
    <embed width="720"
    height="500"
    type="application/x-java-applet;version=1.5"
    code="com.timer.AppletGenerator.class"
    codebase="."
    ARCHIVE='PerfMonGUIApplet.jar, jcommon-1.0.0.jar, jfreechart-1.0.0.jar, log4j-1.2.13.jar, itext-1.3.1.jar'
    strStartTime = "<%= strStartTime %>"
    strEndTime = "<%= strEndTime %>"
    GraphPerfMon = "<%= strPerfMonPoint %>"
    strDateSelected = "<%= strDateSelected %>"
    ContextPath = "<%= strContextPath %>"
    strAppServerIPAddress = "<%= strAppServerIPAddress %>"
    strAppServerPort = "<%= strAppServerPort %>">
    </embed>
    </object>
    But its giving exception:
    load: class com.timer.AppletGenerator.class not found.
    java.lang.ClassNotFoundException: com.timer.AppletGenerator.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
    please help me out.
    Thanks.

    Look at this part of the stack trace:
    Caused by: java.io.IOException: open HTTP connection failed.It looks like you can't connect to the server.
    Rather than looking at the JSP source, look at the HTML source that your browser is dealing with. My guess is that HTML is wrong, with values that point to a server that doesn't exist, or something. Are you sure you're running this page on an environment that can deal with JSPs? Are you sure that's a valid JSP? Maybe that "strAppServerIPAddress" value isn't expanding.

  • My Applet start failed due to security warning after upgrading java version

    Hi Team,
    We have an application where we read the weight from the attached weighing Scale (Hardware device).
    For this we use one Applet which runs and reads the data.
    Now we upgraded the Java version from 1.6 to 1.7 and started encountering a security alert 'Running unsigned applications like this will be blocked in a future release because it is potentially unsafe and a security risk'.
    Our application runs on a HTP port not on HTTPS because this is installed in client premise and no risk in opening HTTP port internally.
    Could you please help us in resolving the issue. We don't want to see the alert even after upgrading the Java version.
    Thanks,
    Vijay G

    Turn off your phone > connect it to a wall charger for 30minutes > install SUS > use SUS to update/repair your phone
    Update Service (SUS)
    PC Companion (PCC)
    Bridge (for Mac)
    Alternatives on How to backup Xperias
    http://talk.sonymobile.com/thread/36355
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Why jws doesn't start when i use jsp as dynamic jnlp?

    hello everyone,
    i use a jsp as dynamic jnlp to resolve the relative codebase problem,but jws can not start. while i use jnlp, there is no problem.i check the http head the jsp reterned,it seems no problem (it returns "application/x-java-jnlp-file" content type), but jws does not start and the browser opens it as a plan text. below is the http head the jsp and jnlp returned, i can not see any obvious difference that prevent jws start. hope somobody can help me, thanks.
    the jsp http head:
    HTTP/1.1 200 OK
    Content-Type: application/x-java-jnlp-file
    Date: Wed, 07 Aug 2002 02:52:31 GMT
    Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector)
    Connection: close
    Set-Cookie: JSESSIONID=EDAB1A3175B3D319BA33AE090EB973BF;Path=/webims
    the jnlp http head:
    HTTP/1.1 200 OK
    Content-Type: application/x-java-jnlp-file
    Content-Length: 372
    Date: Wed, 07 Aug 2002 02:49:58 GMT
    Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector)
    Connection: close
    Last-Modified: Wed, 07 Aug 2002 02:35:19 GMT
    ETag: "372-1028687719000"
    the response body is same. here is part of the jsp file:
    <%@ page contentType="application/x-java-jnlp-file"%>
    <%
    StringBuffer codebaseBuffer = new StringBuffer();
    codebaseBuffer.append(!request.isSecure() ? "http://" : "https://");
    codebaseBuffer.append(request.getServerName());
    if (request.getServerPort() != (!request.isSecure() ? 80 : 443))
    codebaseBuffer.append(':');
    codebaseBuffer.append(request.getServerPort());
    codebaseBuffer.append(request.getContextPath());
    %>
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="<%=codebaseBuffer.toString()%>" href="<%=request.getRequestURI()%>">

    I get the same problem since I moved to Tomcat 4.1.18.
    The difference is that when I look at a jnlp, I get
    Date: Tue, 18 Mar 2003 10:58:25 GMT
    Server: Apache/1.3.26 (Unix) mod_jk/1.2.0 mod_ssl/2.8.10 OpenSSL/0.9.6b PHP/4.2.3 FrontPage/5.0.2.2510
    Content-Length: 1355
    Content-Type: application/x-java-jnlp-file
    Last-Modified: Mon, 17 Mar 2003 15:58:46 GMT
    Client-Date: Tue, 18 Mar 2003 10:58:25 GMT
    Client-Peer: 192.197.110.222:80
    and at a jsp:
    Date: Tue, 18 Mar 2003 11:06:10 GMT
    Server: Apache/1.3.26 (Unix) mod_jk/1.2.0 mod_ssl/2.8.10 OpenSSL/0.9.6b PHP/4.2.3 FrontPage/5.0.2.2510
    Content-Type: application/x-java-jnlp-file;charset=ISO-8859-1
    Client-Date: Tue, 18 Mar 2003 11:06:10 GMT
    Client-Peer: 192.197.110.222:80
    Set-Cookie: JSESSIONID=026BF3209EC094A4045F1D37C2A0E98B;Path=/
    Could the difference be ;charset=ISO-8859-1
    How to remove that, in my jsp I just have :
    <% response.setContentType("application/x-java-jnlp-file"); %>
    Help
    Benoit

Maybe you are looking for