I would be curious to see if anyone has a design for this.  I fixed it by
moving to Tiles, as it handles errors much better.  It is a little more
complex than straight templates, but it is worth it once you do your first
"extends" definition and realize the possibilities...

Tim




                                                                                       
                                                       
                    "Billy Ng"                                                         
                                                       
                    <evebill8@hot                                                      
                                                       
                    mail.com>                                                          
                                                       
                                                                                       
                                                       
                    08/15/2002                                                         
                                                       
                    11:29 AM      To: [EMAIL PROTECTED]                   
                                                       
                    Please        cc:                                                  
                                                       
                    respond to                                                         
                                                       
                    "Struts Users                                                      
                                                       
                    Mailing List"                                                      
                                                       
                                         Subject:     error handling in jsp            
                                                       
                                                                                       
                                                       



Caterpillar: Confidential Green          Retain Until: 09/14/2002
                                         Retention Category:  G90 -
                                         Information and Reports




Hi folks,

I am using struts-template.tld to generate the pages.  For example,

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<template:insert template='/main_template.jsp'>
<template:put name='head' content='/templates/head.jsp'>
<template:put name='content' content='/content.jsp'>
<template:put name='footer' content='/templates/footer.jsp'>
<template:insert/>

When any exception is thrown in the content.jsp, the page will display with

header only.  I want to display the error_content.jsp if any eception is
thrown in content.jsp is caught.  Would anybody please share how you handle

this, thanks!

Billy Ng

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to