How to change the argument input in a jnlp file?

A question associated with the following few lines of jnlp codes:
<application-desc main-class="Main">
<argument>arg</argument>
</application-desc>
My question is: "How can 'arg' be changed dynamically?
Thanks for help.

Thank Dietz for help.
I tried the following jsp code. But it can launch the application only when "test2.jnlp" file exists. "argument to change" can't be passed to the application.
Thanks.
<% response.setContentType("application/x-java-jnlp-file");
out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
out.println("<jnlp ");
out.println("spec=\"1.0+\" ");
out.println("codebase=\"http://tang:8080/examples/rtla/\"");
out.println("href=\"test2.jnlp\">");
out.println("<information> ");
out.println("<title>RTLAFrame viewer</title> ");
out.println("<vendor>XXX, Inc.</vendor> ");
out.println("<description>RTLAviewer Application Demo</description>");
out.println("<description kind=\"short\">A viewer.</description> ");
out.println("<offline-allowed/> ");
out.println("</information> ");
out.println("<security> ");
out.println("<all-permissions/>");
out.println("</security> ");
out.println("<resources> ");
out.println("<j2se version=\"1.3+\"/>");
out.println("<jar href=\"test.jar\"/> ");
out.println("</resources> ");
out.println("<application-desc main-class=\"RTLAFrame\">");
out.println("<argument>argument to change</argument>");
out.println("</application-desc> ");
out.println("</jnlp> ");
%>

Similar Messages

  • How to change the value of variable in .bpel file

    Hi,
    How can i change the value of variable in .bpel file at time of deployment.
    Can it be possible with configplan.xml or deployment descriptor?
    Thanks
    Richa

    You cannot change the value of variable in .bpel file using config plan. If you want to change value at runtime , you can use Preference variable. Below is the blog to help you understand more.
    http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    Cheers,
    Durga
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • How to change the replication group information after db files are created

    Since group information is persisted in the database, I am wondering if there is a way to update the information.
    We want to implement some kind of Berkeley DB master relay mechanism for our two data centers, which has slow link in between. Basically have one master populating a database file and launch another two node as master to replay that to other nodes of its own group. It will be much efficient this way so we don't have to copy the data multiple times over the slow link.
    We periodically (once a day) update the Berkeley DB content from customer's feed on a backend node and upload (rsync) the Berkeley DB File to two the data centers. We would like to have a master node in each data center to read the pre-populated data file, replicate the changes to the web node (read only) while they are still running. I simulated local and if I trick the nodeName and nodeHostPort setting, it should work (basically, fake the replication node on the backend node using tampered hostfile so they get registerred). However, it is not very convenient and definitely a dangerous hack on the production servers.
    If there is a way, after the creation, to update the group information (for example, change all the nodes information) without corrupt the log file/replication stream, it will be much easier for us. Basically, we would like to have the node/group information and data file de-coupled?
    Any ideas how to do that, or is there a better way to design such a replay of data using Berkeley DB?
    Thanks in advance!

    2. You mentioned to not clean up the log file. Is there a point where I can safely call clean up on the environment when BDB is still online as I can imagine we will run out of space very soon if we don't clean up.The approach outlined above (steps 1 to 5) will ensure that no log files are deleted on A while you are updating B and C. The use of DbBackup ensures this. For more information on how this works, see the DbBackup javadoc.
    Whether this causes you to run out of disk space on A is something you'll have to evaluate for yourself. It depends on the write rate on A and how long it takes to do the copy to B and C. If this is a problem, you could make a quick local copy of the environment on A, and then transfer that copy to B/C. But you must prohibit log file deletion during the copy, using DbBackup, or the copy will be invalid.
    You should perform explicit JE log cleaning (including a checkpoint) before doing the copy to B/C. This will reduce the number of files that are copied to B/C, and will reduce the likelihood that you'll fill the disk on A. See the javadoc for Environment.cleanLog for details on how to do an explicit log cleaning.
    In your earlier post, it sounded like the updates to A were in batch mode -- done all at once at a specific time of day. If so, you can do the copy to B/C after the update to A. In that case, I don't understand why you are afraid of filling the disk on A, since updates would not be occurring during the copy to B/C.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to change the prompt message in a open file box

    Hello
    In my VI the user has to introduce several file path. They are sequenced so we know which one is requested. Is there an easy way to change the message on the "choose file to read" window in order to have "choose xxx file to read" etc... Is this through some VB programming or does labview have some tools for that ?

    There are two solutions:
    OBN's solution uses a function to get the file name.
    My solution uses the file control. You have to click on the browse button to select the file.
    Both solutions will open the system Open File dialog where the user can select the file. OBN's solution is more obvous to change the parameters. In my solution you have to use property nodes.
    See the VI (LV7.0) how my solution works.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    Select File.vi ‏15 KB

  • How to change the "Download" word indicated for a File browse item ?

    Hi,
    I have a File Browse item. It displays "Download". And works fine too ! i want to change the Message "Download" by "Télécharger". Where can I find this ?
    Thank you for your kind help !
    Christian

    Hello Christian,
    If you are referring to the DOWNLOAD on an interactive report that is set to download a blob (for example), you can change the word Download to be anything you wish in the Download Format Mask. The very last entry is the Download Message.
    DOWNLOAD:TABLE_NAME:BLOB_CONTENTS_COLUMN:PRIMARY_KEY_1:PRIMARY__KEY_2:MIME_Type_COlumn:FILENAME_COLUMN:LAST_UPDATE_DATE:CHARACTER_SET:CONTENT_DISPOISITION:DOWNLOAD_LINK_TEXT
    For example:
    DOWNLOAD:TABLE_Of_CONTENTS:TOC_PAGES:BOOK_ID:::PDF_FILENAME:MOD_DATE::ATTACHMENT:Click Here To Download This Book
    The message "Click Here To Download This Book" will appear for each link.
    Good luck,
    Don.
    You can reward this reply by marking it as either Helpful or Correct :)

  • How to change the path of an Access .mdb file @ runtime in Visual Studio 2012

    Hello,
      I'm hoping my question is simple enough to merit a quick answer.  I will lay out the details:
      I am writing a WindowsForms App in VB 2012.  I have a Crystal Report that points to an Access .mdb at design time in order to get the proper structure and layout correctly.
      However, during runtime, I need to point to a completely different .mdb file with the same identical structure.  How do I do this?  I've tried everything I could find on the net with no success and mostly because the answers are for C programmers.  I mean, I can pretty much decipher it, but have gotten zero results.
      Thank you for your time.
    -Mike

    ok. The code needs some small modifications.
    I gave it a quick try and here is the InProc RAS SDK code which works for me. Add the assembly references to the app for all those assemblies used in the 'imports' statements in the code.
    Imports CrystalDecisions.ReportAppServer.ClientDoc
    Imports CrystalDecisions.ReportAppServer.DataDefModel
    Imports CrystalDecisions.ReportAppServer.ReportDefModel
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Web
    Imports CrystalDecisions.Shared
    Partial Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim ClientDoc As ISCDClientDocument
            Dim logonPb As New CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag()
            Dim table_Old As New CrystalDecisions.ReportAppServer.DataDefModel.Table()
            Dim table_New As New CrystalDecisions.ReportAppServer.DataDefModel.Table()
            'Open the report object to initialize the ReportClientDocument
            Dim rd As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
            rd.Load("C:\Users\Administrator\Desktop\Report1.rpt")
            ClientDoc = rd.ReportClientDocument()
            table_old = ClientDoc.Database.Tables(0)
            'Clone the original table in the report
            table_new = table_old.Clone(True)
            ' Get the connection information from the report document for the first table in the collection.
            logonPb = table_new.ConnectionInfo.Attributes("QE_LogonProperties")
    'set the path for new mdb
            logonPb.Item("Database Name") = "C:\Users\Administrator\Desktop\New folder\efashion1.mdb"
            ' Set a new table for the report, set the old table to the new one.
            ClientDoc.DatabaseController.SetTableLocation(table_old, table_new)
            'view the report
            CrystalReportViewer1.ReportSource = rd
        End Sub
    End Class
    Hope this clears the doubts

  • How to change the display ratio of a video file in OSMF

    Hi all
    The video file I want to play has an incorrect width and height embedded in the video meta file (if you get the metadata of that video file, the width and height are incorrect). I'm now able to get the correct width and height, but I don't know how to apply them to OSMF. I'm using the MediaContainer for video display, the default behavior of that container keeps the original (which is incorrect) ratio (get from the video metadata) even I set the width and height. I'd appreciate if anyone can provide suggestion on how to do it.
    Thanks.

    You can modify the OSMF library's ScaleModeUtils class to do this, here's the path:
    OSMF > org.osmf > layout > ScaleModeUtils.as .
    My code to implement the 16:9 and 4:3 ratios.
                                                     case ScaleMode.STRETCH:
                                                      result
                                                                = new Point
                                                                          ( availableWidth
                                                                          , availableHeight
                                                      break;
                                            case ScaleMode.NONE:
                                                      result
                                                                = new Point
                                                                          ( intrinsicWidth          || availableWidth
                                                                          , intrinsicHeight          || availableHeight
                                                      break;
                                                     // ****custom begin
                                            case ScaleMode.FourToThree:
                                                      var availableRatio1:Number= availableWidth/ availableHeight;
                                                      if(availableRatio1 > 4/3){
                                                                result = new Point( availableHeight * 4/3, availableHeight);
                                                      }else{
                                                                result = new Point( availableWidth , availableWidth * 3/4);
                                                      break;
                                            case ScaleMode.SixteenToNine:
                                                      var availableRatio2:Number= availableWidth/ availableHeight;
                                                      if(availableRatio2 > 16/9){
                                                                result = new Point( availableHeight * 16/9, availableHeight);
                                                      }else{
                                                                result = new Point( availableWidth , availableWidth * 9/16);
                                                      break;
                                            // ****custom end
    And then you can set the container's scalemode to apply a ratio:
    layoutMetadata.scaleMode = ScaleMode.STRETCH;
    Or
    layoutMetadata.scaleMode = ScaleMode.FourToThree;

  • How to change the input language ?

    Hello,
    I am writing an Add-on that needs to change the input language when the user
    clicks on the Item Code field ("5") in the "Item Master Data" form.
    I can perform the change when I am out side of the SAP application (for example if I create a Windows Form), however I cannot control the input language of the SAP itself through code.
    I even tried using Application.Sendkeys, however I was unable to send a combination of ALT+SHIFT, or at least it did not have any affect
    Here is the code on how to change the input language on a Windows Form:
    For Each Lng As system.Windows.Forms.InputLanguage In system.Windows.Forms.InputLanguage.InstalledInputLanguages
       sValue = Lng.Culture.DisplayName.ToUpper()
       If sValue.StartsWith("ENGLISH") Then
                        system.Windows.Forms.InputLanguage.CurrentInputLanguage = Lng
                        Exit For
        End If
    Next
    Any ideas ?

    I am not sure I understand the problem. Anyway in B1 you change the language by
    changing it from the Administration module. This raises a Application event that
    is sent to all the add-ons. The event is aet_LanguageChanged and you should
    then change the language handled by your add-on when you receive it.

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

  • How to change the flag image in language input in menu bar?

    I have two languages that I have selected for regular use in my language input menu (on the right-hand side of the menu bar), and I would like to change the Spanish input flag from the Spain national flag to an Argentina flag, just for aesthetics. I figured it'd kind of be like changing the image of how the HDD looks like on the GUI (control-click, get info, copy and paste image), but I'm not sure where to start or if it's even possible. Anyone have any clues or experience with this? I may just have to make do with keeping the Spanish flag up there but just for curiosity's sake I want to know if it can be done.

    There is no problem doing this if you are willing to create and install a custom keyboard layout.  You can find the tool and a manual at
    http://scripts.sil.org/ukelele

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • How to Change the Fields from Input mode to display mode

    Hi experts,
    Here is my business requirement. I need to show certain fields in the PRICING TAB OF SALES ORDER  in display mode. Now for this i am using the BADI definition CRM_PRICING_BADI.
       Now, can anybody tell me how to change the field type from input mode to change mode?

    Hi Karan,
      In your BADI has a parameter CT_INPUT_FIELD_NAMES with one field called CHANGEABLE with values:
         Field Can Be Changed
    A     Field Cannot Be Changed
       Assing this values to your fields according with your requirements.
    Regards.
    Manuel

  • How do change the sound level input at the premiere cs6

    Hello:
             I would like to know how to change the sound level input al the premiere cs6?.
    Sincerely, Gabriel Conde

    The input sound levels will be determined by the media files you use.  The output volume can be adjusted in several ways.
    https://helpx.adobe.com/x-productkb/global/offline-help.html

  • How to change the caret/selection color of text input controls?

    Hello JavaFX Community,
    i'm new to JavaFX. I'm using it since i saw the huge steps forward with version 2.0.
    I have the task to migrate a software from Swing to JavaFX. As a part of our corporate design, we used a special color for the caret and text selection. I couldn't find any information about changing the caret color in JavaFX 2, so i'd like to ask you and i'd be very thankful for an advise.
    There is a cross-post at StackOverflow:
    http://stackoverflow.com/questions/10057989/how-to-change-the-caret-color-in-javafx-2-0
    Thanks and best regards.

    This might be possible, but it is not trivial. You cannot do it with a standard API at this time, you will have to look into creating a skin that allows for these properties to be controlled.
    For example, the color of the caret is currently controlled in the TextFieldSkin (look for the "caretPath" property). Just forcing a color change in a subclassed skin is not so hard. Something like this:
    public class MyTextFieldSkin extends TextFieldSkin {
      public MyTextFieldSkin() {
        this.caretPath.fillProperty().unbind();
        this.caretPath.fillProperty().set(Color.RED);
    }However, it gets trickier if this color must be dynamic and if you want other things to be changed as well. It is a place to start though.
    Many of the skins methods and properties are 'protected' though, so atleast in Skin subclasses you have a lot of options to introduce new features and behaviour.

  • HT3625 How to change the audio port function (input, output) on OSX 10.9.2 !!!! :(

    The thing is that i saw some videos, and search for options of how to change the audio port.  And even apple says that i have to change it from system preferences, but when i try to change it, the option doesn't appear me.

Maybe you are looking for

  • Dead hard drive or software problem

    Hello Everyone!! I recently picked used 600 Mhz iMac It came with 10.3 installed, wanted to install 10.2.8 and the computer crashed when I started off the 9.1 install CD After the crash, the computer would not start up off the hard drive, and I've tr

  • ITunes always accessing the iTunes store

    I just upgraded my iTunes to version 7. Now always the bar at the top of the window is always accessing the iTunes store. Why does it do that? I don't want to access the store. Thanks for the help Linda Reinfeld IBM ThinkPad T43   Windows XP Pro  

  • What is the proper interpretation of the output from PID vi?

    Can someone clarify the meaning of the output from the NI PID vi's? From the documentation for the PID control toolkit, it appears that the output is an absolute quantity and not a delta (change) to the previous output. The problem I have is that if

  • BPS Performance when reading a hierarchy

    Hi, We have created planning levels with a selection on a cost center hierarchy node (included in a variable). Under this level, planning layouts use the characteristic cost center as a lead column. When we execute one of these layouts (in the Gui wi

  • Is it possible to adjust iPad's screen colours?

    I want to reduce the amount of blue light emitted by my iPad's screen. The screen's brightness is ok. I've tried the inverted colour screen but don't like it. I can't find anything in Settings and/or Accessibility for this issue. Thanks in advance fo