Custom Include Tag & Exception Handling

2002-10-06 Thread Jack D. Bates

I have written a custom JSP tag to include JSPs. Below is the simplified
implementation. Why doesn't Tomcat display an error report when
accessing 'page.jsp', as it does when accessing 'broken.jsp'? Anyone's
help would be VERY much appreciated.

Thanks,

Jack


package test;

import java.io.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class IncludeTag extends TagSupport {
	protected String path;

	public int doEndTag() throws JspException {
		try {
			pageContext.include(path);
		} catch (IOException exception) {
			exception.printStackTrace();
			throw new JspException(exception);
		} catch (ServletException exception) {
			exception.printStackTrace();
			throw new JspException(exception);
		}
		return EVAL_PAGE;
	}

	public void setPath(String path) {
		this.path = path;
	}
}



http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>



0.1


1.2


test



include


test.IncludeTag



path


true






<%@ taglib uri="/WEB-INF/test.tld" prefix="test" %>




<%@ page import="non-existant-class" %>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


and multiple s

2002-08-01 Thread Jack D. Bates


How ought I to configure Tomcat so that the same context is avalable in
both the Standalone and Tomcat-Apache services? Thanks very much,

Jack

--
To unsubscribe, e-mail:   
For additional commands, e-mail: