[Ajax4JSF] 下载附件的问题
xcc258
2010-10-18
做了一个系统要求可以上传多附件,前台我用
<ui:repeat value="#{customermodule.search_recvBean.filelist}" var="file" > <h:outputLink value="../upload/#{file}" onclick="return false;">#{file}</h:outputLink> <h:outputText value=" "></h:outputText> </ui:repeat>方式来显示附件的。现在的问题是点击附件的下载链接时,我发现如果附件的格式为图片或者Word文档,页面就会直接打开文件,而不会出现下载提示框。尝试过嵌入JSP页面但是报错:customermodule/fileupload.jsp:1: cannot access com.apusic.web.jsp.runtime.HttpJspPageImpl (_jspx\_customermodule\_fileupload__jsp.java:15) bad class file: E:\Operamask\开发环境\Operastudio\apusicserver\lib\apusic.jar(com/apusic/web/jsp/runtime/HttpJspPageImpl.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public class _fileupload__jsp extends com.apusic.web.jsp.runtime.HttpJspPageImpl 不知道大家可有好的解决办法。急。。急。。。急。。急。。。。 |
|
xcc258
2010-10-21
怎么都没人回答啊。。难道只能用<om:fileDownload>组件来实现,但是如果像我这情况,是从数据库中取出附件信息,怎么使用<om:fileDownload>组件呢?
|