Can an Applet Jump to an URL when it exit?

Can an Applet Jump to an URL when it exit?
Thanks in advance!

You can use
Applet.getAppletContext().showDocument(URL) to make it
hop.u can use this code on applet destroy method

Similar Messages

  • I can't get my movie to jump to a URL when completed. Why?

    This is what I do and then save. I publish and sample but no matter how often or how many ways I try it is not working, why? What am I doing wrong?
    Open URL Or File
    Opens the specified website in a web browser after the movie stops playing.
    To load a URL, type the full path to a website (for example, http://www.website.com). Click the inverted arrow icon next to the URL box to select the window in which to display the URL, then choose Current, New, Parent, or Top.

    If you're testing this from your own hard drive then the issue will be that you have not configured Flash Global Security to trust the publish folder location:
    |http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    Do that, or else upload your published content to a web server and test from there.

  • Can I change the currency on the secure url when taking payment for a booking?

    Hi,
    I have a website that takes bookings for training courses, the country of the domain is set to UK.
    The events module is inside a webapp. When they view the details layout of the webapp, the booking form is displayed as on the page.
    I now want to introduce training in Ireland so I need to be able to take the payment in Euros for these events. What I wanted to do is create a sub-domain and set it to a different country so the payment would be in euros but the site redirects back to the secure URL when viewing the webapp item as a payment is taken on this page. As you can only have one secure URL this causes a problem..
    Is there a way to change the currency in the secure domain without changing the country in the domain settings? Can this be done using javascript?
    Any help would be appreciated!
    Thanks,
    Dean

    Whow what a shame, I thought this iPad was going to be terrific.  Guess I'll get out my trusty Cannon from now on, lots less hassle.
    Thank you for the reply!

  • It can't find URL when i use HLS for vod and the vod file name contain Chinese.

    It can't find URL when i use HLS for vod and the vod file name contain Chinese。eg: http://127.0.0.1:8134/hls-vod/你好.mp4.m3u8.
    How does it support Chinese path?

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • Applet looking up server even when local references are available

    Hi,
    I have an applet class and images packaged in a single jar.
    I am currently referring to the image from the applet with this command -
    url = getClass().getResource("/images/abc.gif");
    icon = new ImageIcon(url);The problem is that the getClass().getResource() is looking up the image on the server from where the applet was downloaded to my browser.
    that is URL is coming as
    {code{jar:http://<hostname>:port/applet.jar!/images/abc.gif{code}
    where as I expect the URL to be
    applet.jar!/images/abc.gif.My package structure of the applet and image in the jar is as follows
    -com
      - mypackage
        - TestApplet.class
    -images
    - abc.gifCould you let me know what is wrong with this code. ?
    I am using JRE 1.6.0_10 on my browser as plugin.

    >
    I think I am actually concerned abou the fact that my applet is looking up the server it was downloaded from, to fetch images, when the jar file that was downloaded already has it.>Good, I thought so. Please note that it is best to state such things in the initial post(1), so people do not have to guess.
    Your fears are unfounded. The Jar will be cached locally. Java would never return a String like the one you wanted, which is not a valid URL (in the way Java understands them) - a Java URL must be 'fully qualified', as opposed to a 'relative path'.
    'Refering back to' the location it was downloaded from is only an indication that Sun does not consider it to be our business where on the local file system that Jar might be cached. It is the same for applets and any application launched using webstart. You can use a packet sniffer such as WireShark to confirm that no extra calls are made to the server after the archives are downloaded.
    Edit 1:
    (1) D'Oh! That information was stated, or strongly implied, by the subject of your post. In that case I will amend my advice to 'mention that information on first post' to 'mention that information in the body of the first message, rather than just the title/subject' - I am not the only one who pays only scant attention to subject lines. ;-)
    Edited by: AndrewThompson64 on May 15, 2009 12:25 PM

  • I can no longer open my Comcast email when I launch from Firefox - it takes me to the email preview page but will not allow me to open the inbox . Does not happen with Internet Explorer.

    This started last month - when I go to my comcast account, I'm able to log on and view my account but can not open my email inbox. When I enter my user name and password, I'm taken to the "Email Preview" page so that I can see a partial view of the inbox but when I click on "View Entire Inbox" it jumps to a page showing that it's loading but goes right back to the preview page - I can't open any of the emails. This does not happen when I use Internet Explorer or Firefox on my older laptop.

    Did you find out what addon?

  • Closing the Applet when I exit the form

    I am deploying an application on web plataform using Forms Server 6i. I have created my own base.html with a logo and a menu as appropiate. I am using Oracle JInitiator to run the forms. When I run a form, the applet is loaded in a frame created in my base.html. All is working fine, but, when I exit the form, I supposse the applet it's still there, because in the page a gray rectangle still remains. I would like to have a background image in the page, and when I close the form, the applet was unloaded, so I can view the background again. How can I get that.
    Thanks.
    P.D.: Sorry but my english it's not so good.

    Make a new project and import old one into this new one.
    See if you can find a up to date Auto Save.
    Also make a habit of 'Save A Copy' to a different drive after each edit session. Save A Copy does not overwrite after so many times as Auto Save does.

  • How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP server

    In 9iAS 9.0.2 Oracle HTTP Server (OHS) is pre-configured to assign requests to the Home OC4J instance via the URL-prefix "/j2ee"/
    For example, the TEST servlet under OC4J would be passed through OHS using:
    http://urmachine:urApachePort/j2ee/TEST
    whereas in the standlone OC4J version, this URL works:
    http://urmachine:urOC4JPort/TEST
    How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP Server?

    It is getting the url prefix from mod_oc4j.conf
    under /ora9ias/Apache/Apache/conf
    You can read more on this at
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a92173/confmods.htm#1008977
    -Prasad

  • REDIRECT JDBC URL WHEN USING DYNAMIC JDBC CREDENTIALS SO NOT HARDCODED

    I have taken over an application that uses row-level security and ADF (using
    dynamic JDBC Credentials). I have been able to set the internal_connection to
    a JDBCDatasource, but cannot set the Connection Type in the Oracle Business
    Component Configuration to a JDBCDatasource. When I do, I receive errors that
    tables are not found. When I set the value back to a JDBC URL, everything
    works fine again.
    I am looking for a solution where the userid and password are not hardcoded in
    the BC4J.xcfg or a way to redirect this information, as we change our system
    passwords every nighty days. Otherwise, I will have to redeploy the
    application every nighty days.
    I did not create this application, but I am sure that you could simply follow
    the "How to Support Dynamic JDBC Credentials" article. From that point, you
    will probably be where I am, where I have the internal_connection set to a
    JDBCDataSource and working properly, but cannot set the Connection Type to
    anything where the userid and password will not be hardcoded or cause failure.
    I wanted to let you know that I have
    found the updated How to Support Dynamic JDBC Credentials
    (http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.h
    tml) and was going to run through the "Advanced: Supporting Dynamic JDBC URLs",
    but once I was done keying in
    env.remove(ConnectionStrategy.DB_CONNECT_STRING_PROPERTY); I received a
    depreciation message on the DB_CONNECT_STRING_PROPERTY. (Note: I am coding in
    JDeveloper 10.1.3, so this may be depreciated as of then, but the ADF Libraries
    for JDeveloper 10.1.3 are on our Oracle 10gAS 10.1.2 server.)
    I thought maybe this would resolve my issue, but I can't be sure as the
    deprecation message leads me to believe that this solution may not be viable in
    the future.
    UPDATE
    =======
    The article you are referencing is definitely an older version.
    There is a newer article for 10g at:
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
    Please see if that helps.
    I have already reviewed this article.
    In fact, I have reviewed many versions of this document. I have not seen one
    created yet for 10.1.3 though (especially without JSF as our 10.1.2 AS server
    will not support it). I need to find an example or documentation that shows
    how we can keep from having the JDBC URL stored in the BC4J.xcfg or a way to
    use dynamic JDBC credentials with a JDBCDataSource. We do not want to store
    the userid and password in the application, rather, we would like to setup
    something that can be configurable from the application server.
    I think we need to use the dynamic JDBC credentials because we are using the
    row-level security, where we setup a database context for the user and only
    allow certain records of a database table to be returned to the browser based
    on that context.
    Might there be a way to still use the JDBCDataSource?

    I understand that the user provides the userid and password and that these values are setup using the Configuration class.
    However, when I am to deploy the ADF Business Module with my application, I have to specify either a JDBC URL or a JDBC DataSource in the Oracle Business Component Configuration.
    When I use JDBC DataSource, the code does not work properly, almost like the user's credentials are not used for the connection (I get errors like table or view does not exist).
    When I use the JDBC URL, the bc4j.xcfg stores a reference in the JDBCName attribute to a ConnectionDefinition in the same file. It is in this tag of the bc4j.xcfg where the userid, sid, and password (encrypted) is stored and used when retrieving the initial context of the ADF business components.
    It is these values that I want to have stored else where so that the application does not have to be redeployed in order for the password (or sid, or other connection information) to be change.

  • ImageIO - javax.imageio.IIOException: Can't get input stream from URL

    Hi,
    I'm developing a program which accesses a given URL of an image and saves it to a file. However when I try this I get the following error:
    javax.imageio.IIOException: Can't get input stream from URL!
         at javax.imageio.ImageIO.read(Unknown Source)
         at ImageSave.main(ImageSave.java:12)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         ... 2 moreThe internet connection I am using uses a proxy server and I think this is where the problem lies. I'm using Eclipse version 3.3 and I've tried changing the network settings to use the proxy's hostname and port but this still isn't working. I've also tried using System.setProperty("http.proxyHost", "hostname") and System.setProperty("http.proxyPort", "port") but that hasn't worked for me either. Below is my class in full.
    import java.awt.image.*;
    import javax.imageio.*;
    import java.io.*;
    import java.net.*;
    public class ImageSave
         public static void main(String args[])
              try {
                   URL url = new URL("http://www.example.com/image.jpg");
                   BufferedImage image = ImageIO.read(url);
                   ImageIO.write(image, "JPG", new File("image.jpg"));
              catch (Exception e) {
                   e.printStackTrace();
    }The error occurs with the line: BufferedImage image = ImageIO.read(url);
    I have tried looking for a way to change how this specific method accesses the internet (e.g: a Proxy parameter with URLConnection) but there doesn't seem to be any.
    Any help or suggestions would be greatly appreciated.
    -Robert

    Ah, that worked fine. I had thought of using that earlier but I was under the impression that the input stream would be HTML rather than an actual image. Not sure why.. Anyway, thanks very much for your help!
    Here is the new code with your suggested revisions and a URLConnection to get the input stream:
    import java.awt.image.*;
    import javax.imageio.*;
    import java.io.*;
    import java.net.*;
    public class ImageSave
        public static void main(String args[])
            try {
                 // This is where you'd define the proxy's host name and port.
                 SocketAddress address = new InetSocketAddress(hostName, port);
                 // Create an HTTP Proxy using the above SocketAddress.
                 Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
                 URL url = new URL("www.example.com/image.jpg");
                 // Open a connection to the URL using the proxy information.
                 URLConnection conn = url.openConnection(proxy);
                 InputStream inStream = conn.getInputStream();
                 // BufferedImage image = ImageIO.read(url);
                 // Use the InputStream flavor of ImageIO.read() instead.
                 BufferedImage image = ImageIO.read(inStream);
                 ImageIO.write(image, "JPG", new File("image.jpg"));
            catch (Exception e) {
                 e.printStackTrace();
    }Edited by: Ragnarob on Apr 21, 2009 2:49 AM

  • Why can't I hear the phone ring when I call somebody, but if I put the speaker on it works

    Why can't I hear the phone ring when I call somebody, but if I put the speaker on I can hear the ringing?

    Don't jump all the way to restoring just yet.  Check to make sure there's nothing in the headphone jack, and nothing covering the microphones (including the noise cancelling microphone at the top next to the headset jack)
    1. Restart the device. http://support.apple.com/kb/ht1430
    2. Reset the device. (Same article as above.)
    3. Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    4. Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • How can my friends see my personal URL?

    I am a new user.
    When my friends type in my personal URL, nothing comes up.
    I already made it for Public View in my gallery and also checked Shared as a web page.
    What else do I need to do so anyone can type in my personal URL and see my albums?

    Is suppose that is it. I just started using Elements 10 and wanted to start having my stuff available to friends and family
    I went into the Gallery and checked off Public View
    When I am the Organize/Edit of Photoshop, I can see my personal URL at the bottom left. When I click on it I am directed to my Gallery
    So I am thinking that when someone types in my personal URL they should be able to see my Gallery. I do notice that when I log into my account the address is my personal URL/users/followed by me name
    I don't want to type in everyone's email. I want to have my contacts view my pics whenever they want
    Any input is greatly appreciated
    Date: Sat, 18 May 2013 13:44:56 -0700
    From: [email protected]
    To: [email protected]
    Subject: How can my friends see my personal URL?
        Re: How can my friends see my personal URL?
        created by hyadav in Photoshop Elements - View the full discussion
    Are you talking about the photoshop.com account gallery.
    -Harshit yadav
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5332553#5332553
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5332553#5332553
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5332553#5332553. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Invalid URL when pasting YouTube URL into YouTube or HTML widgets?

    Any known fix for INVALID URL WHEN PASTING URL OR EMBED CODE INTO YOUTUBE AND HTML WIDGETS?
    And video doesn't play on the widget window but rather opens YouTube OUTSIDE of mu website separately!
    It appears A LOT of people have had this Problem!

    It's very simple.
    This is what you paste in the URL field of the YouTube widget :
    http://www.youtube.com/watch?v=cbvdzQ7uVPc
    And this is the embed code from the YT page. Paste it in a HTML Snippet.
    <iframe width="560" height="315" src="//www.youtube.com/embed/cbvdzQ7uVPc" frameborder="0" allowfullscreen></iframe>
    And in case you won't see anything in the HTML snippet, either publish the page to see the result or add http: before the //.
    As you can see I haven't a problem. Probably because I'm not a lot of people.

  • Http Request - error in URL when params contain spaces

    Hi friends , I invoke a servlet from a HTTP client using the GET method. I pass two Strings which contain spaces and non-english alphabets.
    I get malformed URL when I invoke the servlet with these parameters in the URL.
    Can someone please help and tell me how to pass spaces and special characters in the URL. Do I need to use some escape characters?
    TIA
    Harish

    You can encode the strings prior to passing them to the servlet as follows:
    String parm1="http://www.mySite.com/this includes spacees/test.htm";
    String param2=" what ever in non-english alphabets";
    parm1=URLEncoder.encode(parm1);
    parm2=URLEncoder.encode(parm2);
    ;o)
    V.V.
    PS: Sorry click the Post! button too soon before the sample code was completed!

  • How to get full URL when LoaderInfo.isURLInaccessible == true?

    Why is Flash Security so hard to figure out?
    I am trying to load an image; however, the image URL I 1st receive is actually a redirected URL. I wish to load the redirected URL, but I can't get the full redirected URL because LoaderInfo.isURLInaccessible is true even though I think I follow all the precautions detailed on the following page:
    http://www.macromediademos.com/devnet/flashplayer/articles/fplayer10.1_air2_security_chang es.html
    Here is my sitaution...
    I have an image URL: i.e. "http://www.foo.com/image.jpg"
    I attempt to load the image ensuring that I set the LoaderContext's checkPolicyFile to "true"
                    var ur:URLRequest = new URLRequest( "http://www.foo.com/image.jpg");
                    var l:Loader = new Loader();
                    l.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
                    var lc:LoaderContext = new LoaderContext();
                    lc.checkPolicyFile = true;
                    l.load(ur, lc);
    When the Event.COMPLETE is dispatched, I discover that the loaded image's URL is not the one I first used ( "http://www.foo.com/image.jpg") instead the URL is a redirected URL  "http://www.bar.com/image.jpg".
    Because of sandbox issues, I can not use the loaded image and be able to manipulate the image. So instead I need to reload the image using the final URL. However, I cannot determine what the redirected URL is because the LoaderInfo.isURLInaccessible == true and LoaderInfo.url =="http://www.bar.com/", not "http://www.bar.com/image.jpg".
            private function onLoad(e:Event):void {
                   var li:LoaderInfo = LoaderInfo(e.target);
                   trace("isURLInaccessible = " + li.isURLInaccessible); //output = "isURLInaccessible = true"         
                   trace("li.url  = " + li.url); //output = "li.url = http://www.bar.com/"
    Acording to the Adobe Blog post (see URL above), I need to ensure two things: 1) LoaderContext.checkPolicyFile= true, and 2) the crossdomain policy file gives the proper permission.
    I think I've met both o these criteria. The crossdomain file for BOTH http://www.foo.com/crossdomain.xml and http://www.bar.com/crossdomain.xml is the following:
         <cross-domain-policy>
              <allow-access-from domain="*"/>
              <site-control permitted-cross-domain-policies="all"/>
         </cross-domain-policy>
    What am I doing wrong? How do I ensure that I can get the redirected URL and LoaderInfo.isURLInaccessible == false?
    thanks!

    Here's an update. (though still no solution.)
    1) I preloaded ANY image from the redirected server: i.e. http://www.bar.com/image123.jpg. (Mind you, I did nothing with this preloaded image.) When I loaded this image, checkPolicyFile == true.
    2) A few seconds later, I loaded the desired non-redirected image: http://www.foo.com/image.jpg.
    3) This time, isURLInaccessible was true and I had access to the full redirected URL: i.e. http://www.foo.com/image.jpg.
    Please note that the image from the 1st step didn't have to be the same image from the 3rd step.
    It appears that you have to check the policy file on the redirected URL before have knowledge of the redirected URL. However, how can you check the policy file on the redirected URL if you don't know the redirected URL yet?
    Ah, Adobe Flash security makes so much sense and is always so simple. /sarcasm
    So does anyone know how to properly check the policy file for redirected images with this new info?
    Seemingly according to the security page written by Adobe which I linked to my 1st post, it should be as simple as setting the checkPolicyFile property of the LoaderContext. I've tried that and that doesn't work. So either Adobe's page is incorrect (perhaps) or is not clear (most likely).
    Unless anyone can come up with a simpiler way to do this, I'll probably do the following which theoretically should work:
    1) load the non-redirected image
    2) when image loads, determine if the loaded URL == the URL originally used to load the image
    3) If it is determined that the loaded URL is a redirected URL, then check if isURLInaccessible  == true.
    4) if isURLInaccessible  == true, then somehow load the policy file from the incomplete URL (I will need to figure out how to do this.)
    5) Once the policy file loads, then go back to step #1. When the process reaches step #4, then isURLInaccessible should be false at which case, process to step #6
    6) Load the redirected image URL
    The above seems like a lot steps to load an image. Can someone confirm if the above is necessary or if there is a simpler way to load the redirected image's policy file?

Maybe you are looking for

  • Logic 7.1.6 plug-in/audio-issues

         Ever since I "upgraded" to Lion, I have had issues with Logic. I have another logic icon that is a "32 bit bridge" that just sits at the bottom now, yet I do not know what it is even doing because ever since it's showed up Amplitube/guitar rig3

  • How to enable note names in piano roll in Logic Pro X?

    Hello, I am trying to understand how to enable the note names in the piano roll editor, according to some posts it should works creating a mapped instrument, I follow up each step but for me this solution does not work. Basically I have created a sof

  • Desktop H430 - update problems - how to update Windows 8.1 ?

    I have Desktop H430. I try to update 8.1 But I cannot find update link at metro store nor metro window update.  even metro store keep close down now. and cannot update Windows8-RT-KB2871777, Windows8-RT-KB287138​9 help me.

  • Having problems re-installing Photoshop CS3 onto my Mac

    Hi, I am having a few problems with re-installing Photoshop CS3 (consisting of licensed versions of CS and the CS3 upgrade) onto my Mac after a repair.  I run a 2.8GHz Intel Core 2 Duo Powerbook and OSX mountain Lion).  On installation I had to ok th

  • Alternating Table Rows - Complex tables

    Hi, I am trying to display a dynamic table in my PDF.  The logic that creates the pdf bindings is basically 2 for loops.  Think of a table that has rows that expand.  Each expandable row is a "Main Row" and each expanded row is an "indented row".  Th