Hi Everyone,
I have some very simple code like the following (
JSF):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<f:view>
<%@ include file="/includes/header.jspf" %>
<html>
<head>
<title>Welcome</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="expires" content="0">
<script src="scripts/js_scripts.js" type="text/javascript">
</script>
</head>
<body bgcolor="#FFFFFF" background="images/til_2000.jpg"
text="#000000" link="#000099" vlink="#330099" alink="#FF0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<td width="88%" valign="top">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="247"><img src="images/trans.gif" width="20" height="20"></td>
<td valign="top" height="247">
<p align="left"><img src="images/hd1_grpadm.jpg" width="299" height="190"></p>
<ul>
<li><font face="Arial, Helvetica, sans-serif" size="-1" color="#3333CC">
<b>
<font color="#333399">
<h:commandLink action='#{facesContext.externalContext.request.contextPath}/faces/success.jsp' value="Sign in"/>
</font></b></font>
<font face="Arial, Helvetica, sans-serif" size="-1"> if you have already successfully registered for site access.</font></li>
</ul>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!-- start of footer.inc -->
<%@ include file="/includes/footer.inc" %>
<!-- start of footer.inc -->
</body>
</html>
</f:view>
BUT - whenever I try to access this page - I get the following ERROR:
javax.faces.el.ReferenceSyntaxException: #{facesContext.externalContext.request.contextPath}/gap/loginsuccess.jsp
at com.sun.faces.el.MethodBindingImpl.<init>(MethodBindingImpl.java:77)
at com.sun.faces.application.ApplicationImpl.createMethodBinding(ApplicationImpl.java:281)
at com.sun.faces.taglib.html_basic.CommandLinkTag.setProperties(CommandLinkTag.java:220)
at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1027)
at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
Truncated. see log file for complete stacktrace
I can't understand why - because I think the syntax is valid? Please help - any feedback would be greatly appreciated!!
Nena