please help this: JNLP association extensions confict with arguments

Hello, Please help this:

I use <argument> tag to transfer some parameters to JWS application.

I also use <associatio> tag to associate a specila file(such as .zzz) to JNLP. But when I doulbe click .zzz file, my application only get "-open" and file path as argument, those parameters in <argument> tag in my jnlp are lost!

What should I do

[383 byte] By [haretua] at [2007-11-26 17:32:35]
# 1

You might do one of either*

1) write the first arguments from the

JNLP to file using the PersistenceService,

then when the arguments include -open

(or -print), read the first arguments back

in from the PersistenceService.

2) Create a small sublass of the main()

class, passing 'hard coded' arguments,

from its main, but adding the -open args

as well.

* Amongst possibly other things, that

is just the first two ideas that popped

into my head.

AndrewThompson64a at 2007-7-9 0:00:36 > top of Java-index,Desktop,Deploying...
# 2
Thanks a lot for your ideas.Is this a bug for JWS? association extensions tag conflicts with <argument>?It should not wipe out those data in <argument> if user double click on the JNLP associated MIME files.
haretua at 2007-7-9 0:00:36 > top of Java-index,Desktop,Deploying...
# 3

..

> ..Is this a bug for JWS?

No.

>..association extensions tag conflicts with <argument>?

Quoting the 'JNLP Specification', section 3

'JNLP file', part 5 'Descriptor Information', under

association element/mime-type attribute

...

"An application making such a request

should be prepared to have its main

method invoked with the arguments

-open filename and -print filename

instead of any arguments listed with

the application-desc element."

AndrewThompson64a at 2007-7-9 0:00:36 > top of Java-index,Desktop,Deploying...