aspose file tools*
The moose likes Servlets and the fly likes handle sendError message from servlet in a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "handle sendError message from servlet in a jsp" Watch "handle sendError message from servlet in a jsp" New topic
Author

handle sendError message from servlet in a jsp

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
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 ]

trying to decode a woman mind....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eddy Lee Sin Ti
Ranch Hand

Joined: Oct 06, 2005
Posts: 135
You can try


SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

As is pointed out in the section I referenced.
 
jQuery in Action, 2nd edition
 
subject: handle sendError message from servlet in a jsp