文件下载后如何返回结果页? [英] How to return to a result page after file download?

查看:124
本文介绍了文件下载后如何返回结果页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Struts 2从JSP页面下载文件。一切都很好,录音和文件恢复正常。一旦完成,我必须返回一个结果页面,但这个页面是扭曲的。如果我无需下载即可打印页面,则会正确显示。如何在文件下载后返回结果页面?

I use Struts 2 to download a file from a JSP page. Everything works good, recording and file recovery is going well. Once I finish I must return a result page, but this page is distorted. If I call the page without downloading, it displays correctly. How can I return to a result page after file download?

我使用Mozilla Firefox作为浏览器,Firebug告诉我以下错误:

I use Mozilla Firefox as browser, and Firebug tells me the following error:


$没有定义

$ Is not defined

在行 $(document).ready(function(){

推荐答案

一个客户端JavaScript库,可能是jQuery(或原型,或MooTools等)。

That sounds like you are missing a client-side JavaScript library, probably jQuery (or prototype, or MooTools etc.).

这篇关于文件下载后如何返回结果页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆