How to execute an applet after a button was clicked in an html page?

the title says it all..
I have an applet, and I want it to run only after I click a button, anyone knows how to do that?

here is htmlpage
www.somepage.com/index.html
index.html has a button the hrefs to /yourapplet.html page
www.sompage.com/appletPage.html

Similar Messages

  • How to execute a method after page Load?

    My question is very similar to what was discussed in following thread:
    How to execute a method after page Load?
    My requirement is that I want to run a method in backing bean of a page, immediately after the page gets loaded. In that method I want to invoke one of the method action included in the pagedef of this page, conditionally.
    I tried using the approach given in the above thread, i.e to use <f:view afterPhase="#{backing_security.setPermPriv}">, but the problem is that our page is not using 'f:view' , so I explicitly added one f:view with afterPhase property set , but it is not working, page it self is not getting loaded, it is throwing the error:
    Root cause of ServletException.
    java.lang.IllegalStateException: <f:view> was not present on this page; tag [email protected]e8encountered without an <f:view> being processed.
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:108)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:733)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
         at oracle.adfinternal.view.faces.taglib.UIXQueryTag.doStartTag(UIXQueryTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.UnifiedQueryTag.doStartTag(UnifiedQueryTag.java:51)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:387)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:822)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:746)
    Please help to resolve this issue, or am I doing anything wrong?

    Hi,
    I assume that your view is a page fragment and here - indeed - the f:view tag cannot be used. If you use ADF then one option would be to use a custom RegionController on the binding layer to listen for the render phase to invoke the method. Another option would be to use a hidden field (output text set to display="false" and have this component value referencing a managed bean property. The managed bean property's getter method can now be used to invoke the method you want to run upon view rendering
    Frank

  • How to eliminate  select message  after Radio button in ADF tables

    how to eliminate select message after Radio button in ADF tables
    example <f:facet name="selection">
    <af:tableSelectOne>
    </af:tableSelectOne>
    </f:facet>
    output:
    radobutton select
    radiobutton select
    please help me regarding this issue.

    Hi,
    this usually has a text String in the header saying "Select and .." which can be changed through the property inspector for the TableSelectOne component
    Frank

  • How to execute closing cockpit after completed the configuration?

    Hi Expert,
           Please help, how to execute closing cockpit after completed the configuration? or if who have a document it will be helpful.
    Best regards,

    components of closing cockpit
    Organizational Hierarchies (Company Codes, Controlling Area, Operating Concern, etc)
    Task List template (Preconfigured templates available)
    Task Lists: Derived from template and extremely crucial for successful definition of the month-end close.
    Dependencies between the tasks
    Monitor
    Detailed information
    5 steps for setting-up Closing Cockpit
    Conduct Planning and Research
    Create the basic template data
    Build the closing template hierarchy structure
    Configure individual tasks
    Change the template to an executable task list
    For delivering the Closing Cockpit successfully, you need to have a clear understanding of the current closing routines, the required tasks, who is responsible for each task, which tasks when executed should affect which level of the organization, and finally a clear process for review and documentation.

  • When I click the Sections button then click on the 1st page I get  a page that is titled "Lorem ipsum dolor sit amet"! Where did it come from and how do I get rid of it. I have tried deleting and "dont save" but it comes back.

    In Pages when I click the 'Sections'  button then click on the 1st page I get  a page that is titled "Lorem ipsum dolor sit amet"!  Where did it come from and how do I get rid of it? I have tried deleting and "dont save" but it comes back. It is a full page in some unknown language. The only thing I can decifer is 'cupy uf cak'.   Rdal

    Roger,
    The icon is +Sections, not just Sections, as in "Add a Section". When you click that icon you get a section break and and a new section template, complete with preformatted text called placeholder text. The reason "Lorem ipsum" is there is so you can see what the format looks like. The reason that it is Latin gibberish is so you won't get hung up on, or distracted by, what it says. It's just a display of format. Select the "Lorem ipsum" text and start typing your content.
    Jerry

  • How can I get the container of a button after the button is clicked?

    I have two components:
    public class A extends JPanel implements ActionListener {
        public A() {
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            // here need to know the instance of B to execute it's process()
            // but I can only know the button jb in B via the following code:
            JButton myjb = (JButton)(e.getSource());
    public class B extends JPanel {
        public ContainerInfoInput(ActionListener al) {
            JButton jb = new JButton("OK");
            jb.setActionCommand("B.ok");
            jb.addActionListener(al);
        public process() {
    public class Main {
        A a = new A();
        B b = new B(a);
    }How can I get the instance of B in which the button is clicked?
    Thank you

    I think it's a defect of the listener mechanism. Under the present circumstance, I must do it like the following:
    I must use another class M as a bridge:
    class A {
        public A() { }   
        public processA (String info ){}
    class B{
        public B(ActionListener al) {       
            JButton jb = new JButton("OK");       
            jb.setActionCommand("B.ok");      
            jb.addActionListener(al);  
       public String processB () {    }
    class M implements ActionListener  {
        public M() {
            A a = new A();
            B b = new B(this);
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            if(command.equals("B.ok")) {
                String information =b.processB();
                a.processA(information);
    }Why not just use A to listen B and obtain instance of B through the ActionEvent?
    Anyone know a solution about it?

  • How to Capture the event when minimized button is clicked of a JFrame?

    Hi All,
    In my SWING application, I want to do something when the minimized button is clicked. But not able to understand how to do that.
    My basic requirement is like that, if I minimize the JFrame, it should be minimized to system tray with an icon. Again when the icon is clicked, the frame should be maximized in the Windows.
    Also, how to make my JFrame visible/invisible. If I close it, then the process will got killed... that I don't want to happen. Should I us setVisible(true/false) for the frame... Please suggest...
    Thanks,
    Ujjal

    There could be some mistake in my basic understanding... Anyway this is what I wrote...
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    public class WindowIconify extends JApplet
         JFrame jf;
         JPanel jp;
         public void run()
              jf = new JFrame("test");
              jf.setSize(200,200);
              jp = new JPanel();
              jp.setBackground(Color.BLACK);
              jf.add(jp);
              jf.setVisible(true);
         public boolean handleEvent(Event event)
              if ( event.id == Event.WINDOW_ICONIFY)
                   System.out.print("iconifying");
              return true;
         public static void main(String args[])
              WindowIconify wi = new WindowIconify();
              wi.run();
    }

  • How to execute a procedure in the same db session of the framework page

    i am using oaframework personalization to create a link. when the link is clicked i will execute a database procedure using /psl/DAD/procedurename. currently when the user clicks on the link it will get executed in separate database session.
    but i want execute the procedure in the db session on the current oa page. is there a way to achive this.
    Thanks
    sreekanth.g

    You can do this, create a simple stackLayout region, add an AM, Controller to it. Add a submit button or link with fireAction set on it. Write a method in your AM and call it from your controller's processFormRequest by capturing the button or link event. In the AM method you can invoke the procedure. Use personalization and attach the region to the page.

  • How to show a MPEG4/H.264 video in Flash in an HTML page?

    Maybe my title isn't clear. I am hoping someone can shed some
    light on the h264 use in flash.
    Instead of displaying a progressive download .FLV video , I
    am trying to have an MPEG4 /h.264 approx. - a 30meg video display
    in flash in an .html page. Quicktime is easy to do, but Flash is my
    goal.
    I read several articles on h264 and flash 9, including this
    adobe
    H264 article but was hoping there might be an easier and maybe
    quicker solution. I did try renaming the .mp4 extension to .flv in
    dreamweaver but it did not display the video. (...unless it was
    downloading the video completely before displaying...not sure)
    There is a ton of sites, blogs and articles on h.264 and how
    flash 9 will display it...but when it comes to how one might
    actually have h.264 in flash on their own site...I am finding it
    difficult to figure out.
    Forgive my lack of action script and Flash knowledge...any
    direction is appreciated.
    Erick

    ...well I did follow that article on playing an h264/mpeg4
    video in flash. It works well, but how would you add playback
    controls?
    FLVPlayback component only allows you to source an FLV video
    not h264/mpeg4.
    This is probably a simple as3 answer...but I am not
    knowledgeable on as3 to know what code to add.
    Any suggests or direction that I should look would be great.
    In the meantime I am researching actionscript 3 to find and anwer.
    E.

  • How to use a jdbc query result to redirect to a variable html page

    uh, my problem is that i'm making a servlet which should redirect to a variable html page based on jdbc query (I'm really sorry if this is not the correct forum to post it, but since it's jdbc i thought it was).
    Anyway, the problem is that when a string say, "mystring" is equal to the value in a column, say "column1" of the database then page should redirect to "mystring.html".
    Is this possible, if so then how?
    and if not then is there any other way to solve my problem?
    please, help!!
    thanks in advance.

    uh, since i've already asked man, please gimme an answer if you know, it'll be appreciated.
    OK, HERE'RE THE DETAILS:(as you requested them)
    i have an html page where there's a textfield say "t1", the value of that text field is sent to the servlet which compares the value of the field with the value in Database, say "db1" in column say "column1".
    if there's a value in the column matching the value inputted in the textfield, then i need the servlet to redirect to an html page of the same name as inputted in the textfield. Hope that helps you understand.....
    thanks in advance.......

  • How to use getContent() method in custom JSP Provider to display a HTML Pag

    Hi,
    If anybody knows how to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page (a simple html page) ..
    I want the code in the provider java file to for the getContent method...
    Pls. get back to me asap....if any body has implemented a custom jsp provider...as it's urgent...
    I have alreday placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir..But still the jsp is not being displayed..
    Pls get me the getContent() method code to retrive the JSP file..
    satyabrata

    Hi,
    You don't have to do anything in the custom JSPProvider's getContent method except the call {  return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Sanjeev.

  • How can I use forms to create a printable document or an html page?

    This question may be a little confusing, so below is a link to an example of what I want to create using Dreamweaver.
    http://www.howard.edu/technology/info/web/hosting/request/default.htm
    On this webpage, the user is asked to fill in the forms with their info and when they press "view printable form", a html page using the info that was inputted is created for the user to print and sign.
    So, I basically want to create the exact same thing in Dreamweaver - any suggestions? Any help is greatly appreciated.
    Thanks in advance.
    Jonathan

    How can I use java to create a shortcut on a surfers
    desktop?
    A surfer clicks on a link and it creates a shortcut
    back to a certain website and/or a shortcut is created
    on load
    thanks
    You have to sign your applet to create files... and thank god too. I hate it when web pages add shiite to my desktop.

  • Thank you script after submit button is clicked

    Hi,
    Thank you for everybody's help. I was able to figure this one
    out. Another question I do have is how do I create a Thank you form
    after somebody clicks a submit button.
    So, visitor clicks a submit button and then he gets a Thank
    you script.
    Can anybody point me into the right direction?
    Again thanks for everybody's help.

    There are only two ways to process form data -
    1. Use mailto:[email protected] as the action of the form
    2. Use a server-side scripting method to a) harvest the
    form's data, b)
    process it in some manner, e.g., enter it into a database, c)
    formulate and
    send an email to one or more email recipients, and d)
    redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable. It
    depends both
    on your visitor having an email client already installed on
    their computer -
    this eliminates public computers, or home users without email
    clients
    installed (more and more it seems) - and on the installed
    email client
    responding to
    the mailto call. It is not possible to use this method *and*
    send the
    visitor to a
    thank you page as well.
    Method 2 is the preferred method, since it eliminates the
    problems of method
    1, but it means that you have to grapple with
    server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    You would have to decide which of these methods is best for
    your needs,
    but if it's Method 2, then start by asking your host what
    they provide for
    form
    processing.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "dreamweavernewbieny" <[email protected]>
    wrote in message
    news:e5ttnv$4pd$[email protected]..
    > Hi,
    >
    > Thank you for everybody's help. I was able to figure
    this one out. Another
    > question I do have is how do I create a Thank you form
    after somebody
    > clicks a
    > submit button.
    >
    > So, visitor clicks a submit button and then he gets a
    Thank you script.
    >
    > Can anybody point me into the right direction?
    >
    > Again thanks for everybody's help.
    >

  • How to display the content once the button is clicked

    Hello!  Just joined today, and my apologize for my huge noobness.
    I'm still learning how to use Flash... and am still struggling on one thing.  It may seem simple to the most of you -- how exactly do you have the content displayed once you click the button?  I'm attempting to have the content for each navigation link button to show up each time it's clicked.  Still a failure.
    Thank you in advance!

    The four frames of a button are related to the button's interactivity and have nothing to do with using the button to display anything beyond itself.   The first three frames ((Up, Over, Down) are used to depict how the button appears for the three possible states of interaction (None, Hover, Press). The "Hit" frame of a button is used to define the interactive area of a button but does nothig as far as contributing to the visual elements of the button.
    As far as getting step-by-step instruction goes, you should try visiting a site like Lynda.com to get some training in using Flash.  You can also try searching Google to find tutorials that others have already written.

  • Transaction/Invoice is not completing after Complete button is clicked

    Dear Legends
    I am facing some problems while performing Period close process.I have to complete some of the incomplete transaction.
    I have took the list of incomplete transactions using the report "Incomplete Invoices Report".The following error i am facing is
    1.I tried to query the incomplete transaction number.The transaction workbench retrieves the data and the status is also incomplete.
    2.When i click complete its showing an error "APP-AR-11080: This transaction has been posted. You can no longer update this field." and gets completed and the Check box "Complete" gets ticked and the "Complete" button changes to "Incomplete".
    3.When i try to close the form or save the form its asking for saving the details, If i click save same error pops up."APP-AR-11080: This transaction has been posted. You can no longer update this field."
    4.When i click no and exits the transaction number again in the transaction workbench.The status is again changed to incomplete transaction and complete tick is not ticked.
    Please try to address this issue guys.
    Thanks and Regards
    Arun Kumar P.R.

    GeryAT wrote:
    This backup is too large for the backup disk. The backup requires 248.04 GB but only 212.07 GB are available.
    That sounds like it's trying to do a full backup -- if there's roughly 210 GB on your system (Time Machine adds 20% or so for workspace).
    If so, and you did a full restore (by starting from your Recovery HD), Time Machine should have automatically "associated" your restored internal HD with the old backups.  It sounds like it didn't, and is treating it as a different one. 
    You may be able to manually tell it to "associate" the restored disk with the old backups, per #B6 in Time Machine - Troubleshooting.  You'll  need the procedure in the pink box there.

Maybe you are looking for

  • How to get selected rows in a new screen in alv.

    Hi everybody, I have a alv report in oops concept when i select a row all the details of that particular row should come in new screen. can anybody help me regarding this if possible with example. thanks in advance. regards, venu.

  • Settings in SAP R/3  And XI While IDOC is Receiver

    Hi All, If IDOC is the Sender Means, we need to Configure the Following <b>In R/3</b> 1) Create Logical Sys of XI in R/3 2) Create RFC Destination in R/3 Towards XI ( RFC Dest Name Shld be Logical        System of XI ) 3) Create Port ( WE21) 4) Creat

  • Aperture to iPad syncing original, not adjusted

    Im pretty sure all setting are correct in previews as both top boxes are ticked, then "Always" and "half size" and on the Gear tab "Maintain Previews for Projects" has a tick next to it, Although it is greyed out when i click on a album. So I try and

  • Adobe Photoshop Elements 12 is now available to download

    Building on successful releases over a decade and more, in our continuous efforts to give our users the excellence in our products; Adobe Photoshop Elements 12 is now available to download. Photoshop Elements 12 is here to help you organize and edit

  • DC111 - XBMC WIFI and Audio,Video drop outs

    Hi I'm using Linux XBMC on DC111. I found some issue when I'm playing movie, form time to time I have audio and video drop outs, but it's only appears when the WiFi card is on. But when I disable the WiFi by software (rfkill) the drop out disappeared