From Applet to "external world" (continued)

this question is an extension to a previous thread (http://forum.java.sun.com/thread.jsp?forum=31&thread=431830)
URL callScriptURL = new URL("javascript:setGlob(" + param + ")");
seems to generate a MalformedURLException:
this is what I got::
java.net.MalformedURLException: unknown protocol: javascript
In order to get rid of this exception, should I use the address of the html page (the html page that calls the Applet [and can I get it from the Applet with a special function without passing it as a parameter to the applet?]) followed by a # sign, then the javascript:setGlob.... string ?

No, it won't work. I'm not aware of any means to include a Javascript call in an URL for the browser to execute. This would be an HTTP thing, which wouldn't be able to assume the existence of Javascript.
The javascript: protocol works only in the browser because the mechanism java.net.URL uses to create URL objects gets it's protocol handlers from the browser directly, and if the browser supports this protocol, it works, but browsers without javascript support probably would throw this exception too. It's the same problem with https: protocols outside applets in regular apps, without including the a protocol handler class to support it.
Of course, you can write your own protocol handler for javascript: (or someone may have one already), but what would you do with it anyway. You probably wouldn't be able to pass this to a browser from an external application anyway.

Similar Messages

  • I moved all my photos and videos from iPhoto to external hard drive and now can't play any videos. Please help!!!

    I moved all my photos and videos from iPhoto to external hard drive, then totaly formated my macbook and now trying to play videos of external hard drive, but they wont play and they in "quicktime containers" and really small in size (50 - 150 Kb). Please Help!!! My misuse will kill me if find out that we have no more videos from our honeymoon...

    I moved all my photos and videos from iPhoto to external hard drive, then totaly formated my macbook and now trying to play videos of external hard drive, but they wont play and they in "quicktime containers" and really small in size (50 - 150 Kb). Please Help!!! My misuse will kill me if find out that we have no more videos from our honeymoon...
    You may need to prepare yourself for a "World of Hurt" from your wife...
    Since the average 0.9 megapixel JPEG photo file of normal graphic complexity stored at a high quality compression setting is 125-135 KBs in size, I would have to assume any QT video files you created of more than a fraction of a second in duration were most likely saved as "reference" files to only be 50-150 KBs. Basically, a reference file is q QT (MOV) file that tells a video player how to play data that is still stored in its original source file container(s). For instance, you could trim and merge a number of files together and save the result as a "reference" file that takes up very little room on your hard drive. Or, you could post fles to a server and create a "reference" file that is small enough to be sent as an email attachment that plays the uploaded data on someone else's computer as long as they are connected to the Internet. Unfortunately, for these reference files to work, all of the resources referenced within the file must continue to exist in their proper locations in order to be found and played by the reference. Since you did not indicate what "but they won't play" really means here or how you actually "moved" your iPhoto library files to the external drive, I can only make some "educated guesses" at this point. (BTW: for future reference, iPhoto has a built-in function that allows you to copy your library to one or more back-up locations and then connect to them by default when iPhoto opens or switch source libraries at will within the opened application.)
    If you created reference files and saved them to an external drive, you should be getting an error message telling you the app needs to know where the source files are located so the reference file can re-connect to the resource data. If the original files were also saved, then simple navigate to the source files in oder to tell the app where they are now located. If the source files were deleted as part of the reformatting process, then you are up the proverbial creek whithout a paddle with little or no hope of doing anything about this issue. (I.e., reformatting and then re-installing a system drive usually means you would have little hope of recovering the specific "lost" data you want as there is always a good chance that some of the data segments were overwritten during the process.)

  • Passing values from applet using POST method to PHP page

    Hello there ;)
    I realy need a help here.. I`ve been working all day on sending mail from applet. I didn`t succeed bcs of the security restrictions.
    So I decided just to pass arguments into PHP page, which process them and send e-mail to me.
    So here is the problem.. I need to send String variables througth POST into my php page. Now I`m using GET method, but I need more than 4000 characters.
    My actual solution is:
      URL url = new URL("http://127.0.0.1/index.php?name=" + name + "&message=" + message);
    this.getAppletContext().showDocument(url,"_self");I really need to rewrite it into POST. Would you be so kind and write few lines example [applet + php code]? I`ve already searched, googled, etc.. Pls don`t copy links to other forums here, probably I`ve read it.
    Thanx in advance to all :)

    hi!
    i`ve got some news about my applet.. so take this applet code:
    public class Apletik extends JApplet {
        public void init() { }
        public void start()
        try
          String aLine; // only if reading response
          String  parametersAsString = "msg=ahoj&to=world";
          byte[] parameterAsBytes = parametersAsString.getBytes();
          // send parameters to server
          URL url = this.getCodeBase();
          url = new URL(url + "spracuj.php");
          URLConnection con = url.openConnection();
          con.setDoOutput(true);
          con.setDoInput(true); // only if reading response
          con.setUseCaches(false);
          con.setRequestProperty("Content=length", String.valueOf(parameterAsBytes.length));
          OutputStream oStream = con.getOutputStream();
          oStream.write(parameterAsBytes);
          oStream.flush();
          String line="";
          BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
          while ((aLine = in.readLine()) != null)
           JOptionPane.showMessageDialog(null, aLine);      
           if(aLine.equals("")) break;
          in.close();      
          oStream.close();
        catch (Exception ex)
          JOptionPane.showMessageDialog(null, ex.toString());
    }here is code of spracuj.php which is on server:
    <?php
      if(isset($_POST['msg']))
        echo('hurray!');
    ?>it has only 1 problem.. when i test it on my localhost, everything seems to be all right. but when i post it to my server, i got IOException HTTP 400 error code :( where is the problem? please help me, i`m so close :D thanx

  • My efforts to remove malware from a network external hard drive connected to my Intel based iMac is now causing programs to hang when I try to open them.

    I own an iMac, recently updated with OSX 10.75. It is the core computer on a home network shared with an iPad, Apple TV, two network printers,my wife's laptop, two iPhone, a BlackBerry and a BlackBerry Playbook. I am experiencing three if not four problems that are overwhelming.
    My original problem is associated with Windows emails files or documents  stored on my external network  hard drive. One or more has malware and is sending malware laced files across the Internet to points unknown.  As someone pointed out in a forum my iMac may be hosting,sharing and propagating Windows malware.  I originally used Trend Micro software on my IMac to monitor any viral activity. Two weeks ago I noticed a number of notices from servers around the world saying my message was not undelivered. Since I had sent messages to the people I simply deleted the emails. Next I noticed the emails on my BlackBerry and my BlackBerry playbook.I configured the Trend to do a complete scan and although it did a complete scan it did not perform a full network scan. It did identify a series of .x27 document files with the same name tbut each had a sequential number. I assumed hat these were the source files that had  sent out the email documents selling Viagara and othernproducts.  I manually deleted thousands of the source documents and the files. This caused some disruption to my computer but it did not produce a hardware or software problem. By following this effort in conjunction with security scans I do believe the malware was activated by Iranian students who were able to activate the malware through my BlackBerry and BlackBerry Playbook.  I learned this from an encounter I had when trying tondelete these files on my computer and my BlackBerry.
    When using my PlayBook after deleting the files from my computer I noticed more messages being returned from servers.  I realized that email accounts connected to my BlackBerry and BB Playbookn were not protected from this problem. As I searched for remedies I learned about turning on the firewall in the previous version of Lion but that did not stop the BlackBerry problem. Each time I deleted a source file on my computer more documents were released. I eventually received McAfee from my ISP. It provided security on the entire network. My first full scan of my external drive identified two malware files. One of them was associated with the Cialis ad the other was from a firm in the Middle East called ADP.  it could not remove the latter file.
    Moreover each time I attempted to remove the source file from my hard drive a file labeled A239A076F would show up on my Blackberry.  As I removed them thousands of these files would show up.  Ultimately I eventually disconnected the external hard drive and removed the battery from the phone and not use the email accounts these messages had used to enter my iMac.  I am contacting ATT about BlackBerry data security and switching to a different phone for business purposes. I will probably change to an iPhone or Android phone for business purposes.  I am also looking at ways to resolve the malware on that drive. There are a number of business and personal files on thatbdrive that I hope to keep. I dread having to pay McAfee to configure the software to eradicate the malware.
    Moving on...last week I updated my iMac to 10.75. It simultaneously updated every Apple based program as promised. It did not update the non-Apple programs.  I am not an IT professional and assumed that it had done so.  On Saturday I attempted to download a file associated with my router extender using my untethered Playbook and BlackBerry desktop software. The program hung. I attempted a reboot and it reopened with the hung program.  It created an alias file on the desktop.  My inclination led to put the alias file in the trash can and delete it. My computer did not respond well to that action. It has been rebooted with Cmd-s-esc tens of time to see if that would activate a file check. It did not. I was able to run a disk utility check. And in spite of the hung process it eventually said the drive was okay.
    Long story in a nutshell. My iMac is responding as if it is looking for a subprogram to complete its a function. Or it is attempting to finish the BlackBerry operation it began on Saturday. I hope this makes sense to someone and the know how I can restore functionality to my iMac.
    Thank you.

    I think the McAfee suite will do the trick when I pay them a one-time fee of $69 or $179 for a year for unlimited support.
    Your call of course but IMO a waste of money. Please read this first:
    There are many forms of ‘Malware’ that can affect a computer system, of which ‘a virus’ is but one type, ‘trojans’ another. Using the strict definition of a computer virus, no viruses that can attack OS X have so far been detected 'in the wild', i.e. in anything other than laboratory conditions. The same is not true of other forms of malware, such as Trojans. Whilst it is a fairly safe bet that your Mac has NOT been infected by a virus, it may have another security-related problem, but more likely a technical problem unrelated to any malware threat.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful:
    https://discussions.apple.com/docs/DOC-2435
    The User Tip (which you are welcome to print out and retain for future reference) seeks to offer guidance on the main security threats and how to avoid them.
    More useful information can also be found here:
    http://www.reedcorner.net/mmg/

  • Migrate from iTunes to Pono world

    Currently I use Yosemity with the latest version of iTunes on my Desktop (Mac Pro) at home. iTunes to me is merely a piece of software to manage my music files which are stored on an external NAS.
    Now Apple stopped making the iPod classic and still does not have a high-res audio solution I bought a Pono player, which has its own pice of software called Pono World.
    Would it be easy to switch from iTunes to Pono World, keeping al my NAS-stored music files in the same location? The current iTunes music folder has been indexed by a uPnP server on the NAS as well, so my uPnP players can access these files too.

    Just click and drag the music from your music library into the itunes interface. iTunes will import your music for you.
    (If you have alot of music, May I recommend you do small amouts at a time)

  • Reverse proxy settings needed for exposing webservice to external world?

    Hi guys,
    Internal PI system have exposed a WebService endpoint URL. There is firewall point lets say it <EXT_POINT:EXT_PORT>, which is accessible from outside the company premises, with http://<EXT_POINT:EXT_PORT>/<SomeService>, then request is forwarded to the PI. However, I believe on PI system, the reverse proxy should be configured. What I shall do is to setup the HTTP mapping:
    <EXT_POINT:EXT_PORT> TO <PI_SYSTEM:PI_HTTP_PORT>
    and
    <SomeService> TO XISOAPAdapter/MessageServlet?channel=<PARTY>:<SENDER_COMP>:<CHANNEL>
    Or am I missing something in the whole picture ..?
    Thanks,
    Lalo

    Hi,
    You don't need to setup rules for each partner or each interface. which requires lot of rule set up at reverse proxy server table. To avoid this, I would suggest to have a common rule for SOAP adapter and HTTP adapter which should be maintained in proxy server.
    Let say, your webservice URL in SAP PI is something like this,
    http://< PI host>:< PI port>/XISOAPAdapter/MessageServlet?channel=:<Service>:<channel name>
    and reverser proxy server URL ( exposed to external world....URL should have Business servie, communication details as well)
    http://< Reverse proxy server host>:< Reverse proxy server port>/XISOAPAdapter/MessageServlet?channel=:<Service>:<channel name>
    then the rule  should be set like,
    whatever request coming from any application with  http://< Reverse proxy server host>:< Reverse proxy server port>/XISOAPAdapter/ ** then route the request to http://< PI host>:< PI port>/XISOAPAdapter/**.
    So the webservice request will be routed to respective interface.
    The same way can be applied for HTTP.
    Hope this helps.
    Thanks
    Rajesh
    Edited by: Rajesh on Jun 23, 2010 9:52 PM

  • Send email from SAP to External User ..........

    hiii
    <b>Is it possible to send mail from SAP to External user??????if possible does BASIS people had to do something???</b>
    I want to send the email from sap to external user([email protected]).My mail will consist of some changes made in production order(CO03). for which i had created the BADI. That part is over now i want to send the mail.
    <b>I got many sample programs in sdn but when i enter the email address it execute but mail is not sent.....I want to know by just executing Zprogram mail will be sent or there is some role for BASIS also..............</b>
    Thanking you.
    Regards.

    There is a transaction called SCOT that needs to be configured
    http://www.sap-basis-abap.com/sapbs035.htm
    http://www.sap-img.com/basis/basis-faq.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm

  • I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac

    I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac. How do I do this? Where do I put these files on my Time Capsule? Will it affect the functioning of my Time Capsule?

    Mixing files with data is not always great idea.
    See info here.
    Q3 http://pondini.org/TM/Time_Capsule.html
    Why not just connect the PC directly to the TC by ethernet and copy the files over?
    It is hugely faster and much less mucking around.
    In windows load the airport utility for windows.. if you have not already as this will help you access the drive.
    There is more info here.
    http://support.apple.com/kb/HT1331

  • Calling web service from applet

    Hi,
    I am trying to consume a .NET web service from a java applet. I use JDev9i and I generated a clientside-stub...
    It works fine in the development environnement, but I get this exception when executing from browser:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
         at java.lang.System.getProperties(Unknown Source)
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.<clinit>(OracleSOAPHTTPConnection.java:105)
         at AppletPackage.Service1Stub.<init>(Service1Stub.java:23)
    I replaceOracleSOAPHTTPConnection with SoapHTTPConnection, but then I get the same exception when trying to execute
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData)); (in the stub)
    Is there anything wrong with the methods of the Oracle packages that could cause security problems?

    Nope, the problem is that the webservice impl is trying to get all system properties and this is a restricted operation for applets. Seems like every single api impl done by oracle is not usable from applets, unless you sign them. I've tried webservices, xml and jndi.. all of them rely on system properties

  • Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation it gives me an input/output error and stops. Any tips?

    Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation and after having selected both my destination and source drives, the operation begins but soon fails due to input/output error. If I try to create an image of the drive it gives me the same error message. Any help would be much appreciated.

    Disk Utility only creates a image of the drive, so it's no help getting exactly what you want, which is your files. If the file structure is messed up or the drive is failing then it's no help.
    If you have a external boot drive and you can't access the internal non-booting drive though the typical Finder and windows to transfer your files via drag and drop methods, then you need to install Data Rescue on the external boot drive and it will do as best as it can to recover your files. (works on non-encrypted/non-Filevaulted drives only)
    .Create a data recovery/undelete external boot drive
    Are you sure you have hard drive failure, or that OS X isn't merely not booting?
    Because if the drive is working physically, then there is a host of fixes
    ..Step by Step to fix your Mac
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/

  • Recover an iMovie from a failed external drive?

    Has anyone been able to get an entire iMovie recovered from a failed external Firewire drive? My LaCie just won't power up despite having its light come on, and having other external drives connected through it to my iMac and working fine.
    I was about to do some backing up after finishing some edits on my latest iMovie, located on that drive. The edits were taking a longer time than usual, with spinning beach ball going on and on, so I decided to restart the Mac and see if that would speed things up. A restart resulted in a totally white screen for over 20 minutes, so I powered off with the switch, and powered on again with it a few minutes later. After three tries, including trying to boot from the installation disk, the iMac sprang to life again, and three of my external drives came on as usual, but not the La Cie that has my iPhotoLibraries and the iMovies I am working on. It is not a problem with power cords or the Firewire cables, as I swapped them out with the other drives, and everything works except this drive will not power up. Its light comes on, and the Firewire ports allow the other drive to come on, as this one is the one connected to the iMac, but the drive remains cold and quiet, just sits there with its blue light blinking.
    I just need it to power on long enough to transfer my data to another drive.
    I will settle for drive-recovery if that means I will get all my movies and photos back......anyone ever had to use a drive recovery service for this? If so, how did it work?
    I do have backups for the photos, but not all of them as I don't usually backup every day. The movies will have to be recreated I can do this, it will just take lots of time......
    not happy with this situation....any support/sympathy greatly appreciated!

    Beverly Maneatis wrote:
    .. The drive comes on and its light blinks, but does not progress to the drive powering up and the light becoming a solid nonblinking. ..
    sorry to contradict you, Bev, but the drive itself has no lights.. :
    (pic by wikipedia)
    THIS is your drive with your precious data .. no blinks ...
    ok, I'm a typically 'Tim Taylor/Home Improvement'-guy (incl. friends in hospital...), so maybe a daredevil about screwing things up/open (pun-taaaa). if you open the housing (usually 4 screws on bottom), you would see a power-supply, some small board for the interface electronics, a fan, some small board for some other electronics. and two cables: one with 4 cables (=power), one flat cable with ~20something wires (=data).. the drive is fixed with another four screws.. it is really dead easy, and you can not damage the drive itself, except you wear some angora and plastic sandals, to get some zillion of volts of static electricity into your fingertips ...
    so, if you find a nice PC-guy, ask him to place the drive into another housing (usb or fw.. doesn't matter...).. for a pro, that is a 5min procedure.. I'm pretty sure, it will work! < fingers crossed > < throwing ash over shoulder > < murmering some Hun's incantaion >

  • How do I get data from a pc external hard drive to my mac

    I am about to purchase an Air. I have an external hard drive I have used for years with my PC.  It has countless pictures and music.  How can I get that data from my PC external drive to my new Air and also to the Time Machine?

    Thank you for your reply.  It is a Western Digital external USB 3.0 formatted for PC.  It includes pics, videos, music, documents, power point, etc.  would it still just be a drag and drop?
    Thanks!

  • I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    There are several possible causes for the Black Screen issue
    *1. Permissions in the Library* : Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    *2. Minor Database corruption*: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    *3. A Damaged Photo*: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    *4. A corrupted iPhoto Cache*: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    *5. A corrupted preference file*: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Regards
    TD

  • Lync to Lync calls not working when users outside of network. But calls from Lync to external numbers do work.

    Hello,
    We are having the following issue: when our lync users are outside of our network, just connected to their home internet or a public WiFi  and not on VPN, they cannot place calls to other
    Lync users inside our network. They get a poor network connection message on the call window. But they are able to make calls from Lync to external numbers without a problem.
    Inside our network, Lync to Lync calls work perfectly fine, the same for calls from Lync to external numbers.
    Does anybody know what could be the cause of our issue? Perhaps I'm missing a setting on our Edge server. What should be the first thing I should check on my Lync servers?
    Thanks for any help!

    Have you opened up ports on your firewall from your internal clients to the edge on UDP/3478 and TCP/443?  This sounds like you might have a problem there.  Can you internal clients properly route to this subnet and resolve the pool name of your
    edge pool? 
    Ports and protocols poster, check out in A/V section client traffic to edge showing UDP/3478 and TCP/443:
    http://www.microsoft.com/en-us/download/details.aspx?id=39968 
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to restore autofill usernames from a backup external hard drive?

    Hello,
    I deleted the autofill data from the clear all history window by checking off the form & search history box.
    Is there away to restore or retrieve the autofill data from a backup external hard drive?
    Any Ideas appreciated,

    See:
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    * C:\Users\&lt;user&gt;\AppData\Roaming\Mozilla\Firefox\Profiles\&lt;profile&gt;\
    The "Application Data" folder in XP/Win2K and the "AppData" folder in Windows Vista and Windows 7 and later versions are hidden folders.
    *http://kb.mozillazine.org/Show_hidden_files_and_folders
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Open Directory)

Maybe you are looking for

  • Click wheel stuck (not on hold)

    my click wheel is stuck. i tried resetting and restoring and all that. all my other buttons work. this is really wierd. please help me!!! do i need to get my iPod serviced? i hope not, cause that costs a fortune... thanks!! dell   Windows XP  

  • Security settings on this doc prevent signing

    I created a form with interactive fields. 1) in security settings it says "no security" 2) under Advanced, I "enabled usage rights in Adobe Reader" 3) opening the pdf in Reader X I clicked on the "Sign" button at the top 4) I get the "The security se

  • ABAP Program to Read Transports and Get Descriptions

    Hello, Does anyone out there have an abap program or know of one that will read transports with the technical names and give you the description of the objects, in order to make it easier to verify things in a transport?

  • Script to determine number of lines of text in a paragraph?

    I'm revisiting an issue I first posted here last summer, thanks to all who offered help, but I've not been able to sort it out. http://forums.adobe.com/thread/455526?tstart=0 What I'm after is  a 'search function' to insert into a FindChangeByList. J

  • HT201210 ipod software update for restore takes over 5 hours

    My daughter forgot her password and I have been trying to restore for 24 hours now. The process has been taking hours (5 or 6), but then doesn't work to restore the device. I have disabled antvirus and followed detailed instructions found here and el