1. 程式人生 > >PDF在jsp頁面中顯示

PDF在jsp頁面中顯示

<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    %>
<!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>Online View PDF</title>
<script type="text/javascript" src="<%=path%>/style/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="<%=path%>/style/js/jquery.media.js"></script>
<script type="text/javascript">  
    $(function() {  
        $('a.media').media({width:800, height:600});  
    });  
</script>
</head>
<body>
<body>
<a class="media" href="a.pdf"></a>






</body>
</html>