Tremal Naik 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.

Huh? From the documentation: "page - Expose a specified item from the page context as a bean."

http://struts.apache.org/userGuide/struts-bean.html#page

L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


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

Reply via email to