Which code snippet inserted at line 12 cause the client to redirect tohttp://www.example.com?()
- A、 response.send Redirect (http://www.example.com):
- B、 response.send Redirect (new URL (“http://www.example.com”));
- C、 Request Dispatcher rd= get Servlet Context (). Get Request Dispatcher ( http://www.example.com”)’ rd. forward (request. Response):
- D、 Request Dispatch rd= Get Servlet Context ().get Request Dispatcher( New URL (http://www.example.com)); Rd. forward (request.response):
正确答案:A
答案解析:有

微信扫一扫手机做题