Hi,
I have created a simple JSF application using myfaces in myeclipse and i am trying to deploy it on Tomcat. After deploying, it doesnot throw any error but on aceesing it as http://localhost:8080/MyfacesPOC1/userLogin.jsp, it is showing a blank page.
Please help me 🙁 .
My code is like:
<%@ page language=”java” pageEncoding=”UTF-8″%>
<%@ taglib uri=”http://java.sun.com/jsf/html” prefix=”h” %>
<%@ taglib uri=”http://java.sun.com/jsf/core” prefix=”f” %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<base href=”<%=basePath%>”>
<title>My JSF ‘userLogin.jsp’ starting page</title>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″>
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”>
<!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
</head>
<body>
<f:view>
<f:loadBundle basename=”BUNDLE_NAME_HERE” var=”bundle”/>
This is my JSF JSP page. <br>
</f:view>
</body>
</html>
Thanks,
Ruhi