immediate help needed - passing parameters from jnlp to standard java app

hello guys,

i am new to the java world. i need some help from you immediately please.

i want to pass information stored in the session varibles to the standard java application through jnlp.

for example i want to pass customerid having customer information through the jnlp file to the standard java application. how to do it.

i am creating the jnlp file dynamically and saving the session variables of a client as arguments in it(such as customerid described above). i generated the jnlp something like this...

<application-desc>

<argument>21</argument>

<argument>cltds21.txt</argument>

</application-desc>

is this the way i am supposed to pass arguments through the jnlp file to the standard java application . if yes how to get these arguments from the jnlp file in standard java application using code. please help me.

your help will be appreciated,

thanks.

[973 byte] By [dreamguya] at [2007-10-1 12:33:17]
# 1
Yes - you can pass args in this way,.with these settings, the args will be available to the programs main:public static main(String [] arg) {then arg[0] will be "21", arg[1] will be "cltds21.txt"./Dietz (aka Andy)
dietz333a at 2007-7-10 14:51:46 > top of Java-index,Desktop,Deploying...
# 2
thanks dude. appreciated.
dreamguya at 2007-7-10 14:51:46 > top of Java-index,Desktop,Deploying...