In article < >,
says...
> Hello,
>
> Does HttpServletResponse.sendError allways return HTML to client?
> I have a third part vendor's MVC framework that uses
> HttpServletResponse.sendError when an exception occurs. If I have
> browser client everytgunh is ok.
> When I have a WAP client it seems to be so that
> HttpServletResponse.sendError
> is not suitable because it does not return WML/UTF-8 and does not use
> error-page tags defined in Web.xml file.
>
> Are there any other ways to invoke errorpage defined to web.xml than
> HttpServletResponse.sendError when exception occurs?
> RequestDispatcher's forward is not good because it needs programming
> and I liked to use container's
> automatic errorpage calling mechanism.
>
> Best regards,
>
It sends an int for the error code and a String for the message (not
html). If you need the String in UTF-8, run it through URLEncoder first
and you should be OK.
DM