Wsup..basically I have a html file saved in another folder in Eclipse..I want to call a jsp and once I call it...I want the html code to show's what I have


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Terms of Use</title>

<jsp:include page="termsofUse.html"  flush="true"/>

when I call the file..I get a blank page....any suggestions would be greatly appreciated


Recommended Answers

All 2 Replies

There can be a lot of reasons. Do you get any exceptions? Does the old scriptlet way of including files works?

Also make sure that you don't include a 'html' file but an 'inc' file with only the content minus the '<html>' and '<body>' tags since they are already in your original document.


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.