users@glassfish.java.net

Re: JRuby on Glassfish public/data directory question

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Jan 2010 17:17:57 PST

I suppose I should add that I did directory deployment and not a WAR file. Also, this is the snippet:

      zip_file_name=_at_upload_file.file_name
      directory = "public/data"
      zip_file_name=File.join(directory, zip_file_name)
      File.open(zip_file_name, "wb") { |f| f.write(@upload_file.file_contents) }

Blows up trying to save the file (last line).
[Message sent by forum member 'wischr' (cwise_at_murmurinformatics.com)]

http://forums.java.net/jive/thread.jspa?messageID=383604