This also works:
<c:set var="error" value="${requestScope['javax.servlet.jsp.jspException']}"
/> (for Tomcat)

but I wanted to avoid the "javax.servlet.jsp..." stuff.

Your method is what I was looking for.  I have not read anything that lead
me to "exception" being the name of that property.  Is there a table that
shows all available pageContext properties.  It's definitely logical though
since exception is an implicit variable for JSP pages.  However, that
pattern breaks down for:

pageContext.servletConfig  which is "config" in JSP pages

and

pageContext.servletContext which is "application" in JSP pages.

Can you tell me how you came by this info for "exception".



thanks


Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-----------------------------------------------------



----- Original Message -----
From: "Michael Duffy" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>; "Jim
Kennedy" <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 4:39 PM
Subject: Re: Exception var - how to get using JSTL


>
> Wouldn't you use
>
> <c:out value="${pageContext.exception.message}"/>?
>
> That's just straight JSTL, so it should be okay. - MOD
>
>
>
> --- Jim Kennedy <[EMAIL PROTECTED]> wrote:
> > Can someone help me with the technique to grap the
> > exception (implicit)
> > variable that exists when isErrorPage=true.  I know
> > it will be part of the
> > pageScope JSTL variable, but I need a technique NOT
> > specific to a container.
> >
> > I don't want to use <% %> at all.  I need an only
> > tag technique.
> >
> > Currently there is not ${exception} guy.
> >
> > Thanks
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to