jsp页面pdf
代码:[html] view plaincopy<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Show Document</title>
<script type="text/javascript" src="js/jquery-1.4.4.min.js" ></script>
<script type="text/javascript">
<%
boolean canPrint = request.getParameter("canPrint") == null ? false : (boolean)request.getParameter("canPrint");
String docPath = request.getParameter("docPath ") == null ? "": request.getParameter("docPath ");
%>
var canPrint = <%=canPrint%>;
$(function(){
if(!canPrint)
$('#pHead').attr('style','margin-top:-45px;margin-bottom:0px');
else
$('#pHead').attr('style','margin-top:0px;margin-bottom:0px');
});
$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
</script>
</head>
<body>
<p id="pHead" style="margin-top:-45px;margin-bottom:0px"></p>
<object id="obj" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="800px" border="0" name="pdf">
<param name="易做图" value="false">
<param name="_Version" value="65539">
<param name="_ExtentX" value="20108">
<param name="_ExtentY" value="10866">
<param name="_StockProps" value="0">
<param id="pURL" name="SRC" value="<%=docPath%>">
</object>
</body>
</html>
用IE打开显示打开的是.tmp文件,路径没错,求助!!!!!!!! jsp object pdf --------------------编程问答-------------------- 自己顶起来 --------------------编程问答-------------------- 这个没弄过,顶下 --------------------编程问答-------------------- 没啥研究不过你用那个pdfobject应该可以解决
补充:Java , Java EE