Skip to content

Instantly share code, notes, and snippets.

@phisad
Created January 30, 2019 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phisad/2432c82ad4022d25044942d9edab55c6 to your computer and use it in GitHub Desktop.
Save phisad/2432c82ad4022d25044942d9edab55c6 to your computer and use it in GitHub Desktop.
JSF welcome file for root context with redirect to landing page (somehow only HTML worked, but not XHTML)
<?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">
<head>
<meta http-equiv="refresh" content="0; URL=landing_page.xhtml" ></meta>
</head>
<body>
</body>
</html>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE xml>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment