Passing a parameter to a Web start app

Hi, I'm having trouble getting a single integer value into my web start application. I understand how you do this with a JNLP however I need a different value for this integer depending on a PHP script. With applets it was fairly simple but with web start apps it seems a little more complex - the only way I could think of was to recreate the entire JNLP file via the PHP script which seems a bit cumbersome if all that's changing is a single integer.
I had a look around on the web for information about this but it seems that information on passing parameters to web start applications is few and far between.
I'd be very grateful for an answer!
Thanks.

alex.p wrote:
So in this case how would I pass the integer as a parameter to the webstart app. Is there no way of simply putting it in the link to the JNLP e.g ?
You could do that if you liked. Is there some expectation that the user will run the web start application after you do that? Or that the user won't already be running it? Or that the user will ever run it? I think you should back up and try to figure out what the point of this parameter is. Is it supposed to make something happen? Or are you just changing the application for the next time a user gets around to using it? Or what? As I said, this really doesn't make much sense so you need to provide a requirement that does make sense if you want to get anywhere at all.

Similar Messages

  • My web start app doesn't get cached

    Many apologies if this topic has been covered before but I have extensively searched the archive and can't seem to find it.
    I have made my own trivial web start app and it downloads and works fine with my installed web start software. The problem I have is that when I launch the web start application manager and start my app from there the app does not apear in the "downloaded applications" section and hence I can't get to run it unless I have a connection.
    Firstly I though I may be missing the <offline-allowed/> element from the JNLP file but it wasn't that. Then I thought it may be because my jars aren't signed but then the examples from sun worked OK and they weren't signed at all.
    I have checked in the web starts cache directory and it looks to me as if the correct jars are in there but still the application manager won't show my app as one of the downloaded ones.
    Any help would be much appreciated.
    Gareth Walker

    The Java Web Start application Manager will only display applications who's jnlp files are cached.
    In order to cache your jnlp file you need to include an href attribute for the jnlp element in your jnlp
    file. This may not allways be possible if your jnlp file is programatically generated by a servlet,
    but it works for static jnlp files.

  • Java Signing issues when loading web start app

    Hey, not sure if this is the correct place for this - but couldn't think where else to put it...
    I'm a bit stuck at the moment and i wondered if anyone could shed some light on my problem, and where I might go from here.
    We've developed a EJB3 application that has a web start UI for users to start... The application is developed in Eclipse and compiled and deployed with ant build scripts... When we deploy the application from within Eclipse everything runs smoothly and users are able to start the web start app without any problems... However I've recently tried setting up a Continuous Integration server (Hudson) for us to test new deploys on and for this our build scripts need to be run outside of Eclipse...
    This appears to run without a problem, however each time the system is deployed from here the web start application fails to start because web start cannot verify the signing in the client jar
    Could not verify signing in resource: http://10.39.216.5:8080/mist2/lib/mist2-client.jarAs far as I can tell from the output of the build everything goes according to plan and there is little difference between the output if the build had been started in eclipse... The only big difference is that when building in Eclipse the build only packs up the compiled code, because Eclipse auto build the application, whereas in Hudson the code is clean built using the ant scripts (which are created by Eclipse)... and if I turn autobuild off eclipse and build the project from scratch using only the build scripts then the same problem arises...
    I'm not really an expert on jar signing so I can't really guess at what might cause the verification to fail... any hints would be much appreciated. It feels like there is something that the Eclipse compiler does that is missing from the scripts but I can't think what this might be as the scripts are created in Eclipse
    Thanks
    Alex

    Alex,
    I believe your problem might be similar to one I had. According to one forum response (of course I can't find it now), if you have third-party JARs in your application (which in your case would be any eclipse jars), they might already be signed by their originators (as are eclipse jars), which may cause some really strange errors.
    The solution for me was to package my third-party (that is, eclipse) jars into their own feature, separate from my application's feature. So, my main jnlp file has an extension to my application's feature jnlp, and that feature's jnlp file has an extension to yet another jnlp file containing the list of third-party (eclipse) jars. Of course, your jar list will probably be different than mine.
    Here's all three files. Hope this helps!!
    Calvin.jnlp (the main jnlp file):
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp
    spec="1.0+"
    codebase="http://bet/ERS"
    href="calvin.jnlp">
    <information>
    <title>ERS</title>
    <vendor>NIAT</vendor>
    <homepage href="http://niat.net"/>
    <description>Electronic Record System</description>
    <icon href="icon.jpg"/>
    <icon kind="splash" href="splash.jpg"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.6+" max-heap-size="256m"/>
    <jar href="org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar" main="true"/>
    <extension
    name="Calvin Feature"
    href="features/net.niat.calvin.feature.jnlp"/>
    <property
    name="osgi.instance.area"
    value="@user.home/Application Data/calvin"/>
    <property
    name="osgi.configuration.area"
    value="@user.home/Application Data/calvin"/>
    <property
    name="eclipse.product"
    value="net.niat.calvin.product"/>
    </resources>
    <application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
    <argument>-nosplash</argument>
    </application-desc>
    </jnlp>
    net.niat.calvin.feature.jnlp (the extension's jnlp):
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://bet/ERS">
    <information>
    <title>ERS</title>
    <vendor>NIAT</vendor>
    </information>
    <resources>
    <jar href="../plugins/net.niat.calvin_@[email protected]"/>
    <extension name="RCP" href="org.eclipse.rcp_3.4.1.jnlp"/>
    </resources>
    <component-desc></component-desc>
    </jnlp>
    org.eclipse.rcp_3.4.1.jnlp (the repackaged eclipse files jar feature):
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="$$codebase">
    <information>
    <title>Eclipse</title>
    <vendor>eclipse.org</vendor>
    </information>
    <resources>
    <jar href="../plugins/org.eclipse.core.commands_3.4.0.I20080509-2000.jar"/>
    <jar href="../plugins/net.niat.calvin_2.6.2.11.jar"/>
    <jar href="../plugins/org.eclipse.core.commands_3.4.0.I20080509-2000.jar"/>
    <jar href="../plugins/org.eclipse.core.contenttype_3.3.0.v20080604-1400.jar"/>
    <jar href="../plugins/org.eclipse.core.databinding_1.1.1.M20080827-0800b.jar"/>
    <jar href="../plugins/org.eclipse.core.expressions_3.4.0.v20080603-2000.jar"/>
    <jar href="../plugins/org.eclipse.core.jobs_3.4.0.v20080512.jar"/>
    <jar href="../plugins/org.eclipse.core.runtime.compatibility_3.2.0.v20071008.jar"/>
    <jar href="../plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar"/>
    <jar href="../plugins/org.eclipse.equinox.app_1.1.0.v20080421-2006.jar"/>
    <jar href="../plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar"/>
    <jar href="../plugins/org.eclipse.equinox.preferences_3.2.201.R34x_v20080709.jar"/>
    <jar href="../plugins/org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar"/>
    <jar href="../plugins/org.eclipse.help_3.3.101.v20080702_34x.jar"/>
    <jar href="../plugins/org.eclipse.jface.databinding_1.2.1.M20080827-0800a.jar"/>
    <jar href="../plugins/org.eclipse.jface_3.4.1.M20080827-2000.jar"/>
    <jar href="../plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar"/>
    <jar href="../plugins/org.eclipse.swt.win32.win32.x86.source_3.4.1.v3449c.jar"/>
    <jar href="../plugins/org.eclipse.swt_3.4.1.v3449c.jar"/>
    <jar href="../plugins/org.eclipse.ui.forms_3.3.101.v20080708_34x.jar"/>
    <jar href="../plugins/org.eclipse.ui.workbench_3.4.1.M20080827-0800a.jar"/>
    <jar href="../plugins/org.eclipse.ui_3.4.1.M20080910-0800.jar"/>
    <jar href="../plugins/runtime_registry_compatibility.jar"/>
    </resources>
    <component-desc></component-desc>
    </jnlp>

  • Java Programming - Run Web Start App Through IDE Using Existing JNLP(s)

    I apologize for the cross post. I believe I mis-posted the first time. The thread belongs here.
    http://forums.sun.com/thread.jspa?threadID=5434826

    You might try pointing JaNeLA *(<- link)* at it, and fixing any errors it reports. Ignore any optimisations suggested. The optimisations are not properly debugged and would not cause the kind of errors you report.
    Oh, and a ++++ to that advice to to ensure the console pops open when encountering a web start app. Make sure the code is not [swallowing exceptions|http://pscode.org/javafaq.html#stacktrace] *(<- link)* at any stage.

  • Pick Your Web Start App Of The Week

    Hi,
    I invite you to post your comments about your favorite Web Start app here.
    Every week I will profile a different Web Start App at "The Saturn Times" - http://vamphq.com/times - including your quotes.
    Post early, post often and help promote all the great Web Start apps out there.
    - Gerald

    Your jnlp checker Vanessa is quite useful.
    Is the source available, because I would like to fix a bug or two I noticed.
    Then check out Gentleware's Poseidon.
    http://www.gentleware.com/download/Poseidon4umlJWS.jnlp
    It is a commercial version of Tigris.org's ArgoUML, a free UML editor,
    which is webstartable as well:
    http://argouml.tigris.org/files/documents/4/0/0100/ArgoUMLWebStart.jnlp
    Interesting about Poseidon was how they implemented key registration for their JWS app, a common task for commercial applications.
    However Poseidon unwillingly illustrates limitations of the present JWS implementation - this beast is large (about 10-30 MB).
    I loaded it at home via an ISDN link (8KB/s) and it took much time. The download was interrupted for several times, I hadn't start to download again from zero, because the app is splitted into several smaller jars, but still had to reload interrupted jars.
    Some days later it turned out that the disk I had the JWS cache on got full. Thus I wanted to move my precious downloads to another partition, which is not possible. You can't move cache contents elsewere, so I had to redownload it again later (ouch).
    An interesting bit about ArgoUML is how they speed up their large app by forcing class loading in a background thread. I saw that in their source and want to try out that technique myself soon, perhaps it gives a little speed advantage.
    Regards,
    Marc

  • Java Web Start.app, apparent problems.

    I have been experiencing many small problems during web browsing, etc. and have received terrific help from Barry Hemphill but he is unable to help on Java matters.
    When I open Java Web Start app. I get the following message; "You cannot open Java Web Start.app because it it is damaged or incomplete". This is possibly, at least by the app's. name the cause of my troubles, though I am guessing. Can anyone guide me to where I can download and re-install the app. to see if it does overcome my problems. A typical one of them is happening as I type, the screen characters are lagging heavily behind my two-finger typing.
    Brian Hope
    MacMini Mac OS X (10.4.10)

    Hi Brian, Happy Holidays!
    The Java Web Start software is a component of the Java Runtime Environment (JRE) and is installed with the JRE.
    http://java.com/en/download/faq/java_webstart.xml
    See also...
    http://www.digistamp.com/t3runMac.htm

  • Web link to pass the parameter to custom web app then update the field

    Hi,
    I have created the web link in service request object to refer Account Object. I want to let user able to select the account from web link then base on the current SR no and account that have created update the record in CRMOD. My question is how to pass the parameter out to my external web app so that they can update my SR correctly?
    Thank you

    Hi Messer,
    I have put in the syntax as below :-
    https://secure-ausomxega.crmondemand.com/OnDemand/user/AssocAccountPopup?mapBC=Service+Request&OACTRL=Account&ophi=PopupNewForm.Account+Id&pfid=PopupNewForm&OMTHD=AssocPopup&OMTGT=PopupSearchList&assocInit=Y&opht=4&OAOBJ=Service+Request&mapField=Account&ophd=PopupNewForm.Account&ophpd=3&disableclear=Y&ophr=AssocAccountPopup&assocval=&ParentType=Edit
    This pop up screen wil let the user to select the account then i will pass the account and the SR to external web app to update back the CRMOD. I am not too sure the above syntax is correct or maybe can you give some example.
    I am new in CRMOD, hope that you can advice on this.
    Thank you,
    SK

  • How to pass command line arguments to Web Start appclient?

    Hi,
    I would like to pass arguments to appclient, but "javaws" unable to do that.
    Do I have to overwrite the JNLP? I use Sun Appserver 9.0, it creates JNLP on the fly!!!
    Please help, thanx!
    MB

    Hi, MB.
    If you are talking about the automatic Java Web Start support for launching app clients in GlassFish, you can pass the equivalent of command line arguments using the query string of the URL you use to launch the app client.
    Briefly, use
    http://host:port/client-path?arg=first-arg&arg=second-arg& ...
    specifying the argument values in the order that you want them passed to the client.
    The GlassFish server will do the right thing and generates the correct JNLP so your arguments are passed to the app client.
    The GlassFish developer's guide http://glassfish.dev.java.net/nonav/javaee5/docs/AS91DG.pdf discusses this and all aspects of the Java Web Start support. You can also take a look at this blog entry http://blogs.sun.com/quinn/entry/command_line_arguments_and_properties that focuses on how to pass arguments.
    Since this technique deals with argument passing in the URL, it works no matter how you launch the app client: a URL in a browser, the javaws command, etc.
    - Tim

  • How to call Web Start app from Web Start app?

    Is there a way to call another Java Web Start Application from a running
    Java Web Start Application, possibly from a different JNLP file?
    Could this be done in a way that there won't be another virtual machine
    launched; i. e. that the started Application will run in the same virtual
    machine as the calling one?
    Cheers,
    Tobias

    Im not sure about running in the same Jvm however there are two ways I know of to start another jnlp app. I am using this to essentially restart my application however, you dont have to do that and can start another web application by either using BasicService.showDocument with the jnlp file ( should start a webs tart app) or usign runtime exec with javaws and the jnlp as the argument.
        String jnlpUrlString = "commpartnersapp.jnlp?COMPANY="+COMPANY_ID;
        try {
          try {
            // Lookup the javax.jnlp.BasicService object
            //get the codebase
            //This will work on both Unix and Windows
            BasicService basicService = (BasicService) ServiceManager.lookup(
                "javax.jnlp.BasicService");
            URL codeBaseURL = basicService.getCodeBase();
            log.config("basicService.getCodeBase()=" + codeBaseURL.toString());
            basicService.showDocument(new URL(codeBaseURL, jnlpUrlString));
          catch (UnavailableServiceException ue) {
            //here for testing purposes since we are not started from jnlp in IDE
            log.log(Level.SEVERE,
                    "ClientFrame:jMenuItemResetUserId_actionPerformed", ue);
            //when we are in the development environment
            String codeBaseString = "http://compub.cms/web/webportal/soft/";
            //Note this will work on windows only, javaws always in path
            //see http://java.sun.com/developer/community/chat/JavaLive/2005/jl0301.html
            //works on windows
            String execString = "javaws " + codeBaseString + jnlpUrlString;
            log.config("execString = " + execString);
            Process application = Runtime.getRuntime().exec(execString);
          catch (MalformedURLException ex) {
            log.log(Level.SEVERE,
                    "ClientFrame:jMenuItemResetUserId_actionPerformed", ex);
        catch (IOException ex1) { //runtime exec throws IOException
          log.log(Level.SEVERE, "ClientFrame:jMenuItemResetUserId_actionPerformed", ex1);
        //pass a false param to not store profile at end of shutdown
        this.shutdown(0, false);  //calls System.exit(0);R
    S

  • Java console doesn't launch when starting Java Web Start app from Firefox

    Updated my Linux desktop from RHEL to Fedora 12 with resultant upgrade of Firefox to 3.5.9 and now when I launch our Java Web Start application, no Java console appears. The Java Control Panel still shows "Show Console" as set. My app uses Java 1.5 which I have installed on my desktop.
    What do I do to properly configure my browser/desktop to support use of the Java console?
    Please help, I need to debug our app!
    Ilane

    IlaneMarie wrote:
    ..Please help, I need to debug our app!Cannot tell you the answer to your FF hassles (because I have no idea why you're seeing that behaviour(1)), but note that you might be able side-step FF by launching a JWS app. using the javaws tool directly from the command line or an Ant build file.
    1) Though you might try rebooting the machine if any installation/configuration changes have occurred since last boot.
    Also note that many problems with JWS apps. can be sorted be checking the JNLP using JaNeLA.

  • How to get data passed back to server from Web Start client ?

    dear experts,
    my web application allows users to launch a web start window from the jsp page, after users enters some data in the web start page and press "OK", the data entered should be passed back server for process. i just have not much clue how to do this....
    thanks.

    Use the java networking library to send a request to a url that takes the arguments you want to pass in.
    Example:
    URL url = new URL("http://yourserver/yourhandler.do?arg1=foo&arg2=bar");
    HttpURLConnection conn = (HttpURLConnection) URL.openConnection(url);
    ... any output testing, etc...
    conn.disconnect();It's not the prettiest, but it ought to get the job done.
    You should probably (at least) use the BasicService to get the codebase back to the server that served up the jnlp file.
    -Mike

  • Why does Web Start App ignore Proxy bypass/exception list in Proxy settings

    Hi All,
    I've been pulling my hair out on this one for a while now and finally decided to see if someone can help me out.
    In my office I have a intranet of numerous devices and pcs connected. There is also a proxy server on the network to allow connection through the the internet. I have my proxy settings setup to bypass the proxy for any addresses on my intranet. This is set in the normal way by adding ( http://192.168.1. to proxy settings exception list in IE. This proxy bypass list works fine for all other situation except the following:
    On my Intranet I have an embedded web server device I have been developing that has a java application deployed using web start. This application is a monitoring tool that allows the user to check the various settings and status of the embedded device. The problem is that when the app is launched for some reason web start tries to get the require jar file from the proxy instead of directly from the device, even when the IP address of the device it is trying to get it from is in the bypass list?? I don't think Web start is checking the exception/bypass list in the proxy settings to see if it should be using the proxy or not?? I can see this by using wireshark and inspecting the GET HTTP requests sent from my pc to the proxy server instead of directly to the ip address of the embedded device.
    If I change my proxy settings to use a direct connection/no proxy (untick the "use proxy server for your lan" box in IE settings) then everything works fine. However this is not a workable option for my customers as they don't want to have to continually change these settings when connecting to this device and then to the internet (which is the whole reason of having the exception / bypass list).
    I've tried many things including using the proxy settings in the Java console instead of getting them from the browser but the same thing occurs.
    Any help would much appreciated, as I not sure if it is something I am doing wrong, or a possible bug, or just the way it is meant to work??
    I'm using the following...
    Java version: 1.6 1.6.0_17
    Operating system: ( I've tried XP and Vista)

    I have the same problem, please anyone can help?

  • Different signded jar in the same web start app

    Hi there
    I have a web start application that use an external security provider. The jar file of the security provider is signed (otherwise it don't run under jdk 1.4.1) and the jar with my application is also signed with other signature, because i need full rights on the client. It is not possible to start the application, because webstart not allows to start the app with jars signed from different certificates.
    Anyone have an idea how this problem can be fixed?

    I'm pretty sure this has been answered here before, so you may want to do a search to get a more complete answer. Basically, you need to sign the other JAR files with different certificates in a separate resource extension jnlp file, something like:
    <extension name="Java Help" href="help.jnlp"/>
    and then list the other jars in that file, something like:
    <?xml encoding="UTF-8"?>
    <jnlp spec="1.0+" href="help.jnlp">
    <information>
    <title>JavaHelp</title>
    <vendor>Sun Microsystems, Inc </vendor>
    </information>
    <resources>
    <jar href="jh.jar" />
    </resources>
    <security>
    <all-permissions />
    </security>
    <component-desc/>
    </jnlp>

  • How to convert existed standalone APP to java web start app?

    hello:
    I didn't find useful information about how to convert an existed java
    app into app which can be launched using java web start from the sun java developer's guide.
    I have designed a simple java applcation and want to lauch this program with
    java web start techniques(on local machine only). Is there any easy way that i could convert my program to the one which support java web start, so i can double click the *.jnlp file to launch my java applcation.
    thank you
    -Daniel Mark

    i just found a great place to resolve my question.
    If you had the same question, please refer to
    http://www-106.ibm.com/developerworks/java/library/j-webstart/
    thank you
    -Daniel

  • Screen Saver crashing my Java Web Start app

    I've written a Java Web Start time tracker application that all employees run from the time they start work until they leave at the end of the day. The only problem is that there are a couple of people who from time to time find that the application has crashed when they unlock their Windows screen saver. The application window continues to show the screen saver image and the title bar says "Not Responding". In an attempt to get some clues, I had one person keep the java console running - but nothing new appears in the console.
    I've personally tried crashing the app by using screen savers, but I cannot duplicate the problem. I've also tried letting my computer go into standby mode and I've let it hibernate. But every time, the application continues running as soon as I log back in.
    Any ideas as to why the screen saver could trigger a problem like this for some users?

    >
    I've written a Java Web Start ... . The only problem is that there are a couple of people who from time to time find that the application has crashed when they unlock their Windows screen saver. >What screensaver(s)? Some important distinctions might be
    - Windows standard savers (the savers supplied with the OS, if so, do they all use Open-GL or all use...?)
    - Windows compatible, 3rd party savers.
    - Saverbeans screensavers (Java based). E.G. <https://screensavers.dev.java.net/>

Maybe you are looking for

  • HTTP/SPNEGO for "SSO" on MS Windows

    HTTP/SPNEGO for "SSO" on MS Windows Hi all of you ! The scene is simple : I got a software (All in plain java ) and some simple web access to this system. ( it's not a real web server wich will be in need for Apache or some big container it's just a

  • My updater shut off while updating and my ipod is not responding

    well, i accidentally closed the updater while it was updating and now my ipod wont respond to the updater or me... any suggestions?

  • Help with tagging

    when i go into acrobat 9 pro and x pro and move the order of my tags i end up losing some of the sentences in my document. Has anyone experienced this problem before, and is there a way around this issue, am i doing something wrong? Now, this doesn't

  • 'Do you want to save changes you have made' while closing the form

    Hi Everyone, I am working on Oracle Applications 11.5.10.2 version. I have created a new form as per the client requirement and registered with APPS. I met all the requirements, but when ever closing the form getting the error 'Do you want to save ch

  • Design question, UCS and Nexus 5k - FCP

    Hi, I need some advice from (Mainly a Nexus person); I have drawn and attached the proposed solution (below). I am designing a solution with 3 UCS chassis, Nexus 5K and 2X NetApp 3240 (T1 and T2). FC will be used to access disk on the SAN. Also, Non