• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handle sendError message from servlet in a jsp

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
belowe there is the code wich I use in the catch clause inside a servlet.


I'd like to handle the string message in the jsp page declared in the web.xml.
So I'm tring to use the following code in the jsp

But nothing appears.
I'm propably using the wrong parameter name, but I didn't discover wich is.

Any suggestions are welcome.
Thanks in advance.
[ February 06, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What parameter? There's no parameter. Where did you think a parameter would be tacked into the URL?

See the Servlet Specification for the information that is available to you in the error handling request -- section SRV.9.9, to be exact.
 
Eddy Lee Sin Ti
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As is pointed out in the section I referenced.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic