Hi,
In case of sendError method the container built a error page and sent to the browser ( Some browser may take there own action). In case of setStatus the container sent only code and the browser take appropriate action, that is, the default container error machanism is not clalled.
But if you define the <error-page> for particular code, then the page is called in case for both the method.
The sendError one extra overloaded version which take Status code and message
string as argument.
Hope this help
Thanks
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0