Import PHP-Array into Java-Application

Hi!
I want to call a PHP-Script from inside my Java-Application. The PHP-Script can return an array.
How do I use a PHP-Array in Java and how do I import it????
Thanks! =)

thanks! =D
one last question:
-how would i have to change my example to make a
https-connection?
Did you try
URL theURL = new URL("https://www.mysite.com/myscript.php");It works that simply. The only complication is if your server is set up for https or not. This is an Apache (or whatever webserver you are using)problem not a PHP problem.
I think it gets upset if you try and use certificates with problems (self-signed etc) but not having tried this (I have only used it with certificates that are otherwise trustable) I don't know that for sure.
Once upon a time I asked a question about using https as a client in Java and I got a variety of answers including doing mystic stuff with my keystore but I tried the simple and obvious and it works like a charm. At least from an Applet but I see no reason an application won't work the same way.
Anyway try the simple and easy and see if that works for you. You might find that it does.

Similar Messages

  • How do i show vbscript into java application?

    hi
    how do i show vbscript into java application? ( looks like microsoft frontpage)
    or what is interpreter of vbscript for java ?
    thank you?

    There probibly isn't one.
    vbscript and java are rather different. You are better of opening a vbscript viewer from java as a sperate program.

  • How do i show javascript into  java application?

    hi
    ( please help me!!!!!!!!!!!!!!!!!)
    how do i run javascript into java application ?( looks like microsoft frontpage )
    thank you ?

    There is a JavaScript interpreter called Rhino implemented in Java, maybe you can use it: http://www.mozilla.org/rhino/

  • Import J2ME source into Java ME SDK 3.0

    Hi,
    Im new to Java ME.
    The internet has lots of J2ME examples for games(but none for Java ME SDK 3.0), and im trying to import these into Java ME SDK 3.0 . I click on new project and select 'Import Wireless Toolkit Project', but it doesn't detect a project. Ive tried this with several popular J2ME samples.
    Anyone know how to do this right, so I can import J2ME projects into Java ME SDK 3.0 completely, with classes, packages and resources intact?
    I tried making a new project, and then copying the files into the relevant directories too. All the classes show up in the SDK, but on running the program no app is displayed in the emulator.

    Don't double post. I've removed the thread you started in the Java Programming forum with the identically same question.
    db

  • Import tool into java application.

    I'm creating a java web service & would like to know if there is a way to import a .exe file into the application so that it can be used in windows with having to be on the customers machine.

    I'm sorry, you're firmly in WTF territory here.
    That's a command to load an application via Java Web Start. It loads it from the server at 192.168.1.1. Running a Web Start application, once it's loaded onto the client, does not involve a browser. But getting it installed on the client does involve a browser.
    And you can configure a Web Start application to create a shortcut. You don't need to do it yourself, least of all from the application to which the shortcut should refer.
    I also don't understand the reference to "web services" and "turning the application into a web application", but probably your use of those phrases isn't related to their actual standard meanings.
    My advice: use Java Web Start in the way it was meant to be used. It works just fine that way. Don't try to help it out if you don't know what you are doing. Which you definitely don't, if I am understanding your idea correctly. Which I might not be.

  • APEX application integration into Java application

    Hello,
    I'm working on a new APEX application and I would like to integrate that application into an existing Java application.
    The integration should be invisible for the end-users. Our application will have the same look and feel as the Java application.
    The existing menu of the Java app will be extended with a new link. This link will then call our application.
    Visually I was thinking about using an Iframe to display the content of the APEX application inside the Java generated xHTML.
    This is however not the biggest issue.
    We are working in a secure context and we thus need to make sure that our APEX application doesn't create a backdoor on the
    security mechanism provided by the Java app.
    Some options have come to mind, but the one that look best is this:
    We keep the java application as the single point of entry for our end-users and make sure that the apex application is "hidden".
    We could do this by means of some re-routing code in the java application so that the incomming requests there are send to the correct server (java or apex).
    Then we will need to capture the response of the APEX application and place it inside the Java generated xHTML. The combined content is then send to the client.
    Or we could place a reverse proxy server that does this for us.
    The goal is thus that we can rely on the existing java application to cover the security and the navigation structure.
    Any ideas on this ?
    How-to's or other options ?
    thanks & regards
    Karel

    In a project I am currently working on we do it using iframes and passsing parameters over a http link.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to load word .doc-files into java applications?

    Hi,
    I want to load a word .doc-file (or any other type of document) into a java application, as part of the application.
    Is there any java special library to do it?
    Any solution or hint?
    Thank you.

    No, there is no existing Java library to do it that I am aware of. You could write your own, however, as the Word 97 binary file format is published. I am not sure that the Word 2000, or XP formats are as well, but since they put out the 97 presumably they'd do the same with the rest -- although I am suprised that Micro$$$oft even published the 97 format.
    A library such as this would take quite some time write, due to the extensive format, but here's a link to a copy of it just so you can see what it'd take: http://www.redbrick.dcu.ie/~bob/Tech/wword8.html
    Also keep in mind that Micro$$$oft has never remained binary compatable between versions. In short, this means that you'd have to parse each version's documents differently. Not a fun task.
    If a Java library to read Micro$$$oft file formats already does exist, I'm willing to bet that it costs $$$ mucho dinero $$$.
    Hey, aren't proprietary file formats just wonderful?

  • Excel Sheet Drag & Drop into Java Application Q

    New to this forum. Have a question regarding the ability to drag and drop an Excel Sheet from an open Excel file onto a Java application. A friend has been able to drag and drop an Excel file from Windows Explorer onto a Java application and then read the sheets to select what you want and display/use the information in a particular sheet, I'd like to take it a step further to so that the user has the ability to be working in Excel and then drag and drop individual sheets into a Java application as they desire. Is this latter option possible?

    Hi,
       Hope the below links helps...
    Re: upload & download files 
    https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
    Thanks,
    Prakash

  • Crystal Reports into java application

    Can anyone help me out in generating Crystal Reports in a java application.

    Yes google the forums here, there is a link to a website that deals specifically with Java and CR, CE, RAS.
    HTH

  • Invoking BPEL process into Java application

    Hi,
    I have created a student admission form using Java in eclipse editor.I want send the total payload to bpel process.For that i need to call bpel from java application.
    So If any one have any idea regarding this,please share with me.
    With Regards
    Jyoti
    Edited by: Jyoti on Mar 16, 2011 5:23 AM

    Hi,
    a BPEL process is exposed by a WSDL reference. Create a JAX-WS proxy client and call the WS port therein from Java. The port then grants you access to the exposed methods in BPEL. Before you ask how to create a JAX-WS proxy client in Eclispse - I don't know as this is JDeveloper forum. So you may want to post the question to an Eclipse forum. I can tell how you do it in JDeveloper though
    Frank

  • Getting windows domain login name into java application

    Hi,
    I am looking how can i get user name of windows logged in user. I want to display the user name in the welcome message of the application. The user will be logging into the domain. Please note that I need windows logged in client user name.
    Please give suggestions or any direction on this.
    Thanks

    Thanks a lot for your prompt response.
    I tried the example. It works really great from the command prompt.
    How do I integrate with application.
    My application runs on OC4J server. I hope I need to change the java security.policy file or something to point to my application sepecific policy file (i.e. in the example, the file that we give thru command line).
    Not sure.
    If possible can you give me some idea on how to change these policy files.
    I know I am asking too much, but please help me in this.
    Thanks

  • Embed Flash into Java Application

    Hello Friends,
    I need to develop a Java Swing application which can display the menus using Flash. So basically I want to embed flash in the Java swing application such that when the user clicks a button in the flash menu, the menu will pass a command to the Java Swing application and vice-versa.
    I am looking to use Flash this way, because using Flash we can create really good looking and smooth menus as opposed to Java Swing. I also want a solution which will be platform independent.
    Please let me know how to do this. Atleast give me some pointers or website tutorial which will guide me in this.
    Thanks a ton.
    S

    moshegym wrote:
    como puedo visualizar archivos swf en javaSer?a mejor hacer un "thread" (?hilo?) nuevo aqu?, y escribir en ingl?s.
    Tambi?n, T? debe mirar aqu?:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=695658
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=605662
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=686514
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=749760
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=682919
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=580785
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=628218
    http://forum.java.sun.com/thread.jspa?threadID=637018&messageID=3719465
    (I found this information in this link: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=768376)
    Edited by: Encephalopathic on Mar 25, 2008 2:40 PM

  • Import Remote Plugin / Module into AIR application

    Hello!
    I want to run remote code in my AIR application within the same security sandbox. I found this article http://blogs.adobe.com/emalasky/2008/04/remote_plugins.html which describes quite shallow how to do it:
    So to pull this content in safely, you need to prove that you can trust it. Given the ease of remote attacks (DNS hacks; man-in-the-middle attacks; owning up the “trusted” server; etc), imported modules must be signed, and the signature must be verified before loading the content.
    First, sign your modules. I’m pretty sure you can just use adt for this, then rip the signatures.xml out of META-INF. Then post the modules and signatures.xml
    When you download the modules, save them and signatures.xml somewhere in app-storage:/
    Use the XMLSignatureValidator class to validate that you downloaded modules that really were signed by you (or some known entity).
    Import the modules into your application sandbox. For SWF, use Loader.loadBytes(), pass a LoaderContext with allowLoadBytesCodeExecution=true. I doubt anyone will do *that* by accident. 
    My questions:
    1.: is this still the way to go in AIR 2.7?
    2.: The explanation is very shallow.. could someone explian a bit more indepth how to do this and what steps are required? Or maybe someone knows a good tutorial?
    Thanks!

    Hello!
    Thank you for that great article!
    Based on this and your code example I added the signature checking to my application in the following way. Could you please tell me whether this is correct and secure?
    1.
    I load the signatures.xml from the remote update package aswell as the signatures.xml from "app:/META-INF/signatures.xml" (signature file from locally installed air file).
    Then i continue to process the file only if (remoteXmlSig..signatureNS::X509Certificate == localXmlSig..signatureNS::X509Certificate) since I only want to allow plugins that were signed with the same certificate as the installed air application.
    2. I run your validation code but with
    verifier.useSystemTrustStore = false;
    3.
    in the "verifyManifest" function I add every file that was successfully validated into an array
    4.
    in the end I use only the files within this array to update my application.
    Is that correct?
    Thank you!

  • Import the CRM ICSS5.0 java application into track

    Hello CRM People,
    we are try to import the CRM ICSS5.0 application into the development track, But in the transport studio we are not able to import the actual physical icss5.0 component.
    We dont know where we went wrong, Please can any body let us know how to proceed with import the icss5.0 into a track in CMS,
    Thank you in advcance,
    CRM AM

    follow the link:
    http://java.sun.com/docs/books/tutorial/2d/images/index.html

  • Help about opening a PHP page from a Java application

    Hi,
    I would have some elements to open a PHP page from a little Java application I'm doing. I would like to know the classes I had to use, how to implement them, ...
    In fact, I dial into my application my login, my password, and when I click on by "Connect" button, I must show the PHP page corresponding ti my profile onto the database. Picking up information from the database is not a problem, I know how to use SQL Packages in Java. The problem is to open a new page (IE or Netscape) when clicking on the "Connect" button in my application.
    Thanks a lot for advice me.
    C�dric

    Hi
    This class is from JavaWorld Tip 66 and I've used it to open web pages and files in a browser.
    import java.io.IOException;
    import java.util.*;
    * A simple, static class to display a URL in the system browser.
    * Under Unix, the system browser is hard-coded to be 'netscape'.
    * Netscape must be in your PATH for this to work.  This has been
    * tested with the following platforms: AIX, HP-UX and Solaris.
    * Under Windows, this will bring up the default browser under windows,
    * usually either Netscape or Microsoft IE.  The default browser is
    * determined by the OS.  This has been tested under Windows 95/98/NT.
    * Examples:
    BrowserControl.displayURL("http://www.javaworld.com")
    BrowserControl.displayURL("file://c:\\docs\\index.html")
    BrowserContorl.displayURL("file:///user/joe/index.html");
    * Note - you must include the url type -- either "http://" or
    * "file://".
    public class BrowserControl
         * Display a file in the system browser.  If you want to display a
         * file, you must include the absolute path name.
         * @param url the file's url (the url must start with either "http://"
    or
         * "file://").
        public static void displayURL(String url) throws Exception
            boolean windows = isWindowsPlatform();
            String cmd = null;
            try
                if (windows)
                    // cmd = 'rundll32 url.dll,FileProtocolHandler http://...'
                    cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
                    Process p = Runtime.getRuntime().exec(cmd);
                else
                    // Under Unix, Netscape has to be running for the "-remote"
                    // command to work.  So, we try sending the command and
                    // check for an exit value.  If the exit command is 0,
                    // it worked, otherwise we need to start the browser.
                    // cmd = 'netscape -remote openURL(http://www.javaworld.com)'
                    cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")";
                    Process p = Runtime.getRuntime().exec(cmd);
                    try
                        // wait for exit code -- if it's 0, command worked,
                        // otherwise we need to start the browser up.
                        int exitCode = p.waitFor();
                        if (exitCode != 0)
                            // Command failed, start up the browser
                            // cmd = 'netscape http://www.javaworld.com'
                            cmd = UNIX_PATH + " "  + url;
                            p = Runtime.getRuntime().exec(cmd);
                    catch(InterruptedException x)
                        System.err.println("Error bringing up browser, cmd='" +
                                           cmd + "'");
                        System.err.println("Caught: " + x);
                        throw x;
            catch(IOException x)
                // couldn't exec browser
                System.err.println("Could not invoke browser, command=" + cmd);
                System.err.println("Caught: " + x);
                throw x;
         * Try to determine whether this application is running under Windows
         * or some other platform by examing the "os.name" property.
         * @return true if this application is running under a Windows OS
        public static boolean isWindowsPlatform()
            String os = System.getProperty("os.name");
            if ( os != null && os.startsWith(WIN_ID))
                return true;
            else
                return false;
         * Simple example.
        public static void main(String[] args)
          try
    //        displayURL("file://c:\\Manual\\Amphibian Accounting Help Test 3.pdf");
    //        displayURL("http://www.pro7.co.za");
            Properties prop = System.getProperties();
    //        Enumeration enum = prop.propertyNames();
            Enumeration enum = prop.keys();
            while(enum.hasMoreElements())
              enum.nextElement();
          catch(Exception e)
        // Used to identify the windows platform.
        private static final String WIN_ID = "Windows";
        // The default system browser under windows.
        private static final String WIN_PATH = "rundll32";
        // The flag to display a url.
        private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
        // The default browser under unix.
        private static final String UNIX_PATH = "netscape";
        // The flag to display a url.
        private static final String UNIX_FLAG = "-remote openURL";
    }If you find a better solution please let me know!
    Regards
    Michael Williams

Maybe you are looking for

  • Data synchronization between two offices

    Hi everyone, After building a database for our growing company, we have a problem with our data and its synchronization. Our company has a rather small, but growing, book warehouse and sells books online. We have been able to deal with orders and sto

  • Something changed firefox into a word document in cryllic how do I fix it?

    some how firefox is now a word document. Desktop icon is also a word icon. When you click on it a word document pops up asking for file conversion with Windows cryillic the defrault. I am sure a virus did this. I have swept my machine, but cannot ins

  • ITunes Music Folder Location changed, but iTunes still uses old location

    Okay - I'm getting a bit frustrated here. Because I had no room on c:, I moved all my iTunes preferences -- applications I downloaded for the iPod Touch, file settings, and all that stuff -- to my D:\ drive. Then I went to Preferences > Advanced and

  • Unable to change printer driver

    Since upgrading to 10.8, there are no option for changing the printer driver when you click "Options & Supplies" for a printer. Under the "Driver" tab, I can only change the settings for the driver I chose when I set up the printer. Is there anyway (

  • DSO - Source Systems

    We are using Bobj DS, and according with our solution we have DSO's with data.   Previously , in the phase 1, we used datasources 7.0 and the model was loading without problems. However, in this phase, when I fill the table opm_sources with these DSO