Hi I guess this is suitable for this list as well. Please reply to [EMAIL PROTECTED] if you have any hints/workarounds thank you very much Cristian --- Cristian Bogdan <[EMAIL PROTECTED]> wrote: > Date: Thu, 4 May 2000 03:16:00 -0700 (PDT) > From: Cristian Bogdan <[EMAIL PROTECTED]> > Reply-to: [EMAIL PROTECTED] > Subject: exceptions in tag bodies > To: [EMAIL PROTECTED] > > Hello > > I would like to be able to get hold of an exception > that occurs in the body of a tag managed by a tag > handler. Something like > BodyTag.exceptionInBody(Throwable t) > I'm not sure whether this makes sense in general or > not but it seems quite logical and general to me. > > My particular problem is that I have a large number > of > JHTML pages that I want to transfer to JSP in an > uniform (automatisable) way. My pages extend a > servlet > class that takes care of exceptions, gets hold of > server-side objects to be used in the page, etc. > Since > page extension is not encouraged in JSP, I thought > that a tag library would be the best solution. While > it serves very well the purpose of getting hold of > server-side objects, the tag library seems to have a > problem with treating exceptions in tag bodies. > > I know that using a <%@ page errorPage=... %> will > accomplish some of the things I need, but when > exceptions are not critical (say user data > validation > exceptions) I want the page to continue (and not be > forwarded to an error page). Having the tag handler > control this is much more flexible. > > Thank you, > > Cristian > > > > __________________________________________________ > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! > Messenger. > http://im.yahoo.com/ > > > __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
