The problem that im facing is, the below code is working correctly and retrieve the pdf format files correctly and displaying it in the iframe. but it is only working in eclipse internal browser but not in firefox or internet explorer. what will be the reason for this....
Source code:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<title>Browse File</title>
</head>
<body>
<center><h3>File Uploading</h3></center>
<center>
<form name="PDFForm" action="browse.jsp" method="post">
Select PDF : <input type="file" name="txtPDFFile" value="">
<input type="submit" value="View">
</form>
<% String s=request.getParameter("txtPDFFile");
if(s!=null){
%>
<iframe src ="<%= s %>" width="100%" height="700">
<p>Your have to select file to view.</p>
</iframe>
<% } %>
</center>
</body>
</html>