I think you want something like...
<%
try
{
//any error to your liking
}catch(Exception e)
{
response.SendRedirect("errorpage.html");
}
%>
[EMAIL PROTECTED] wrote:
> I am trying to use either jsp:include or <%@ include file .... %> in my
JSPs
> with JRun. Problem - bad results with errorPages. For example, the error
> page gets included as part of the output of the page that had the error. I
> have set the buffer size to a large value, and that helped, but it is not a
> good quality solution (sometimes my pages will include a large,
> unpredictable quantity of data).
>
> Is there a way around this problem? If not what is the best solution for
> catching exceptions that allows either redirection to an error page or
> display of an error message, without, e.g., several rows of database output
> preceding it?
>
> Thanks,
> Hamish
>
>
>
>
--------------------------------------------------------------------------------------
> For more information about Barclays Capital, please
> visit our web site at http://www.barcap.com.
>
>
> Internet communications are not secure and therefore the Barclays Group
> does not accept legal responsibility for the contents of this message.
> Any views or opinions presented are solely those of the author and do
> not necessarily represent those of the Barclays Group unless otherwise
> specifically stated.
>
>
--------------------------------------------------------------------------------------
>
------------------------------------------------------------------------------
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.