Darren Carlton wrote: >>From looking in the XXE API documentation, I don't think > com.xmlmind.xmleditapp.start.WebStart accepts any arguments. >
com.xmlmind.xmleditapp.start.WebStart main() accepts exactly the same command line arguments as its desktop counterpart. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/command_line_usage.html > I'd like to dynamically generate a JNLP file that can open a specific > file in XMLMind via WebStart. > > For example, if I'm looking at "foo.xhtml" on my internal web site, I'd > like for foo.xhtml to have a button that would use Java WebStart to open > the file in XMLMind. > > Is this possible? > Yes, this is possible, suffice to generate a .jnlp file with foo.xhtml passed as an argument to com.xmlmind.xmleditapp.start.WebStart main(). Let's call this file foo.jnlp. Your button would then invoke "javaws foo.jnlp". <application-desc main-class="com.xmlmind.xmleditapp.start.WebStart"> <argument>file:/bar/gee/foo.xhtml</argument> </application-desc> Just make sure to pass an absolute URL and not a filename. See http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#application_desc

