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"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Browse File</title>
<center><h3>File Uploading</h3></center>
<form name="PDFForm" action="browse.jsp" method="post">
Select PDF : <input type="file" name="txtPDFFile" value="">
<input type="submit" value="View">
<% String s=request.getParameter("txtPDFFile");
<iframe src ="<%= s %>" width="100%" height="700">
<p>Your have to select file to view.</p>
<% } %>

Edited by peter_budo: Keep It Clear - Do wrap your programming code blocks within [code] ... [/code] tags

6 Years
Discussion Span
Last Post by Vivek_18

Hi Ganesh,

How you are checking & confirming that the code is not working over a browser?
Can you share the Error Details you see through your browser

Probable Solutions are: -
1) Create a war file from Eclipse and deploy it in your App Server.
2) Deploy the WEB APP directly from the Eclipse.
3) Copy the library files in the lib folder and check

Your problem should get solved hopefully.


Hello Ganesh,

Still this problem is not solve how to do that. can u please provide me the solution.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.