题海让大学四年没有难题
白天模式登陆

题目详情

单选题 当 Servlet 处理请求发生异常时,使用下面哪个方法可向浏览器发送错误消息?( )

A. HttpServlet的sendError(int errorCode)方法

B. HttpServletRequest的 sendError(int errorCode)方法

C. HttpServletResponse的 sendError(int errorCode)方法

D. HttpServletResponset的 sendError(String errorMsg)方法

Web开发技术课程封面

学科:Web开发技术

时间:2024-04-29 08:16:52

Copyright © 2022 津ICP备2021001502号