About Question enthuware.jwpv6.2.1086 :
Posted: Wed Jul 19, 2017 12:39 am
if we use the attributes pageEncoding or contentType instead of errorPage with the same logic does the answer still the same?
Java Certification Resources and Java Discussion Forum
http://enthuware.com/forum/
Sets the content type of the response being sent to the client, if the response has not been committed yet. The given content type may include a character encoding specification, for example, text/html;charset=UTF-8. The response's character encoding is only set from the given content type if this method is called before getWriter is called.
This method may be called repeatedly to change content type and character encoding. This method has no effect if called after the response has been committed. It does not set the response's character encoding if it is called after getWriter has been called or after the response has been committed.