First time here? Check out the FAQ!
I am having difficulties with Filedownload on ios devices (files won't download), so I am trying to implement my own filedownload functionality by writing the data into the servlet request myself, using
(HttpServletResponse) Executions.getCurrent().getNativeResponse();
and setting headers, content type and writing the data to the servletresponse outputstream. However when using it I get the following error in an alert window, and the file doesn't download:
Unexpected token % (SyntaxError)
Note that it only seems to occur when using it in a @Command function. If I do the download in the @Init function, it works. How can I get rid of the error?
I am using zk version 7.0.1.
Asked: 2014-03-25 16:04:45 +0800
Seen: 30 times
Last updated: Oct 26 '15