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 up...here's what I have

"cp-termsofUse.jsp"

<%@ 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>Terms of Use</title>
</head>
<body>

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

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

thanx

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.

thanx

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.