Hi, to save a file to the Client from an Applet you have to sign all jars used by that applet. Or if you are using Java 6 Update 10 or later, you can use some features of Java Web Start even from applets, and use its Persistence (but in this case files will be saved/loaded from a fixed location of the disk, and not from where you want, so maybe this could not be the best solution for you).
Some references (not exact on this, but useful to can get more infos on this feature): http://www.java-forums.org/java-applets/17779-java-applet-save-file.html http://forums.sun.com/thread.jspa?threadID=5444573 in Internet you can find many examples for this ... with Applets this is a common feature to have Or you can try to see for your case, if could be useful to deploy as an application (not as applet) with Java Web Start (and maybe add a security all-permissions tag in jnlp deployment descriptor), so for example you can even work off-line. > I was thinking of asking a web service to generate the content and reply > with the URI with the generated file, but this would consume resources on > my server and since I'm running in the client I would like to take > advantage of that. Yes, it depends on what you have to do to generate your content, but if you have all data already on client, probably it's better to generate files on client too. Suggestion: think to put something on the server-side to trust/validate client side data (or client-side content) ... could be useful, depend on the type of data you have to manage. And I'm a bit paranoid about these things :-) . Tell if you need more info. Bye, Sandro -- View this message in context: http://apache-pivot-users.399431.n3.nabble.com/PDF-XML-From-Pivot-tp1634782p1634873.html Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
