[opencms-dev] Jsp Template ErrorPages

Greg Montgomery greg.montgomery at sytec.co.nz
Thu Jun 5 06:11:01 CEST 2003


Hi,

I would like to setup an error page for a jsp template page.

I can get the errorpage working for non template based jsp pages through the
normal tags, eg.

<%@ page session="false" %>
<%@ page import="java.util.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<%@ page errorPage="/opencms/opencms/sample/errorpage.jsp" %>

<%
String gg=null;
gg.length();

%>


However if I have the same errorpage defined in my template which is in the
system/modules area :

<%@ page session="false" %>
<%@ page import="java.util.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<%@ page errorPage="/opencms/opencms/sample/errorpage.jsp" %>

I get a blank page displayed rather than the specified error page.  I
believe this is a referencing problem.  The errorpage cannot be located from
the template.

Any help would be appreciated.

Thanks,

Greg Montgomery




More information about the opencms-dev mailing list