Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

${pageContext.exception} don't seem to work

 
Matthew Shalorne
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have:

in my web.xml.
In errorPage.jsp I have:

I have inserted:

into one of my jsp pages. As expected it jumps to the error page but it only shows the exeption message next to 'old way:' (empty [ ] after Error is:. EL is working on my other jsp pages. Any ideas why ${pageContext.exception} doesn't work? Has nyone else got it to work?

My setup: jboss-4.0.0RC2 running on j2sdk1.4.2_06 running on Linux 2.6.11-1.14_FC3

Thx
 
Bhumika Thakkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pageContext.exception is the object exception.

U need something like:

${pageContext.exception.message} Some variable in the exception class that stores the message and is publicly accessible.
 
Matthew Shalorne
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Bhumika,
It makes no difference. Apart from the fact that the book (head first (to the errata page!)) does not specify a message - the toString of Throwable should be fine. I have tried several methods etc. nothing works. Does yours work? Has anyone got this to work? Is this a JBoss problem? Has anyone got it to work with JBoss?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic