题目详情
单选题 当 Servlet 处理请求发生异常时,使用下面哪个方法可向浏览器发送错误消息?( )
A. HttpServlet的sendError(int errorCode)方法
B. HttpServletRequest的 sendError(int errorCode)方法
C. HttpServletResponse的 sendError(int errorCode)方法
D. HttpServletResponset的 sendError(String errorMsg)方法

学科:Web开发技术
时间:2024-04-29 08:16:52
相关题目
相关作业
