1

HttpServletResponse file download error in @command functions

asked 2014-03-25 16:04:45 +0800

mimog gravatar image mimog
10 1

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.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-26 22:42:45 +0800

cawink gravatar image cawink
27 1

Hi. What was your solution ?? I have same problem ... thanks

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-03-25 16:04:45 +0800

Seen: 30 times

Last updated: Oct 26 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More