JiveJdon Community Forums
在线362人   首页   主题表   培训咨询   标签   精华   查搜   注册    登陆 RSS
首页 » 论坛 » J2EE/JavaEE/JEE/EJB/JSF等技术讨论
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 1 回复 / 1
 发表新帖子   回复该主题贴
zxlinux

悄悄话
发表文章: 1
注册时间: 2004年11月08日 16:29
诚心请教在JbuilderX中使用CrystalReportViewer出现Error finding JNDI name的问题 2004年11月08日 16:38 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表
我用Crystal Reports9 做了一个名为DeviceReport_1.rpt的报表,然后用JBuilderX做了一个JSP页面,在JSP页面中用JBuilderX自带的CrystalReportViewer对报表进行浏览打印刷新等操作。我做报表时用了Oracle数据库作为数据源,服务名为:SEC_192.128.1.9 用户为:system 密码为:manager 。

我的JSP源代码为:
<--!
<%@ page contentType="text/html; charset=GBK" %>
<%@ page errorPage="ReportView_error.jsp" %>
<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %>
<html>
<head>
<title>
ReportView
</title>
</head>
<jsp:useBean id="reportViewBeanId" scope="session" class="report2.ReportViewBean" />
<jsp:setProperty name="reportViewBeanId" property="*" />
<body bgcolor="#ffffff">
<crviewer:viewer viewerName="1" reportSourceVar="_1" reportSourceType="reportingComponent" top="100" isOwnPage="true" displayToolbarExportButton="true" displayToolbarPrintButton="true" displayToolbarRefreshButton="true" displayToolbarFindButton="true" displayToolbarCrystalLogo="false" >
<crviewer:report reportName="crystalreportviewers10/Report/DeviceReport_1.rpt" />
</crviewer:viewer>
</body>
</html>
!-->

编译能通过,但是在IE中点击CrystalReportViewer的ToolBar上的refresh按钮时IE中却出现了下列提示:
com.crystaldecisions.report.web.viewer.CrystalReportViewer
Error finding JNDI name (SEC_192.128.1.9)

而且将其报表导出为pdf文件时,打开pdf文件时会有“正自动更新”的提示出现,然后pdf文件的内容消失掉。
我对JNDI了解不多,我的想法是不是要用JNDI的函数将服务名加进去,但具体如何做也不太清楚,请大家帮帮忙,多谢了!
banq

悄悄话
发表文章: 9484
注册时间: 2002年08月03日 17:08
Re: 诚心请教在JbuilderX中使用CrystalReportViewer出现Error finding JNDI name的问题 2004年11月08日 20:35 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
需要学习Datasource的JNDI概念
这个主题有 1 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
正在读取,请等待...
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
  发贴前查询 标签列表勿重复发表问题

RSS 手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com
anti spam