高分 200++ jasperreprot applet 不调用PrintApplet.class中的方法

cfd406635982 2010-10-19 11:51:05

<html>
<head>
<base href="<%=basePath%>">
<title>Test</title>
<link rel="stylesheet" type="text/css" href="css/panel.css">
<script type="text/javascript">
function print(){
printApplet.print();
alert("print...");
}
function preview(){
alert("preview begin");
printApplet.preview();
alert("preview...");
}

</script>
</head>

<body>
<APPLET id="printApplet" CODE = "PrintApplet.class" CODEBASE = "/test/reportClass" ARCHIVE = "jasperreports-applet-3.7.5.jar,commons-logging-1.0.4.jar,commons-collections-2.1.1.jar" WIDTH = "300" HEIGHT = "300"></XMP>
<PARAM NAME = CODE VALUE = "PrintApplet.class" >
<PARAM NAME = CODEBASE VALUE = "/test/reportClass" >
<PARAM NAME = ARCHIVE VALUE = "jasperreports-applet-3.7.5.jar,commons-logging-1.0.4.jar,commons-collections-2.1.1.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME = "REPORT_URL" VALUE ="/test/servlet/PersonServlet">
</APPLET>
<button onclick="print();">打印</button><br>
<button onclick="preview();" >预览</button>
</body>
</html>



点击了预览 但是没有调用PrintApplet中的方法。。
或者谁有空帮我调试一下。。我另外送。。200++
...全文
57 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cfd406635982 2010-10-29
  • 打赏
  • 举报
回复
结贴了 没有正确答案
cfd406635982 2010-10-19
  • 打赏
  • 举报
回复
我晕 java版都是来接分的啊。。
没有人回答
cfd406635982 2010-10-19
  • 打赏
  • 举报
回复
谁有能够运行的例子吗?
cfd406635982 2010-10-19
  • 打赏
  • 举报
回复
谁能告诉我 用applet实现jasperreport需要什么东西?
我怎么总是不对。
jypapgl 2010-10-19
  • 打赏
  • 举报
回复
<base href="<%=basePath%>">
CODEBASE = "/test/reportClass"

感觉是这找不到
cfd406635982 2010-10-19
  • 打赏
  • 举报
回复
觉得特别无助。。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧