hihi, yes there is. you can use the <c:catch> tag to wrap around your entire jsp page. on my pages i have something like this:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <c:catch var="myException"> <html> <html:form action="/myAction"> ... .... </html:form> </html> </c:catch> <c:out value="${myException}"/> this tag is part of JSTL, which is included with the Struts distribution. you will need to have jstl.jar and standard.jar available to your web app. hth, woodchuck --- Tremal Naik <[EMAIL PROTECTED]> wrote: > Hi, > according to the article which url is > > http://java.sun.com/developer/EJTechTips/2003/tt0114.html > > in case an exception is thrown by a web component a new implicit > variable named exception is put in the page context. The exception > can > be retrieved by a scriplet (it works, i tried it): > > <%= exception.getClass().getName() %> > > or, they say: > > "Servlets and custom tags may access the exception object by calling > PageContext.getException()" > > Is there any tag in struts which allow me retrieving the page context > and/or the exception passed to the error page? The <bean:page> lets > you retrieving only one in application, config, request, response, or > session. > > thanks > > -- > TREMALNAIK > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]