Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xhtml - IE7 - download dialog

843844Aug 25 2007 — edited Aug 26 2007
I'm learning facelets. I have created my first hello world facelet called: MyXhtml.xhtml. When I access it from Internet Explorer the file download dialog is displayed. When I press "Open" another download dialog is displayed and so on.

In FireFox the page is displayed without any problems.

How can I display a xhtml facelet page in IE? I am using IE 7.

Note I am using MyEclipse and they recommend the xhtml extension over jspx.

Below is my sample code.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<head>
		<title>My XHTML Page</title>
		<meta http-equiv="keywords" content="enter,your,keywords,here" />
		<meta http-equiv="description"
			content="A short description of this page." />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

		<!--<link rel="stylesheet" type="text/css" href="styles.css">-->
	</head>
	<body>
		<p>
			This is my XHTML page.
		</p>
	</body>
</html>
Thanks in advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2007
Added on Aug 25 2007
2 comments
90 views