Youwanttocreateafilterforyourwebapplicationandyourfilterwillimplementjavax.servlet.Filter.Which twostatementsaretrue?()A.Yourfilterclassmustimplementaninitmethodandadestroymethod.B.Yourfilterclassmustalsoimplementjavax.servlet.FilterChain.C.Whenyourfilter

题目
Youwanttocreateafilterforyourwebapplicationandyourfilterwillimplementjavax.servlet.Filter.Which twostatementsaretrue?()

A.Yourfilterclassmustimplementaninitmethodandadestroymethod.

B.Yourfilterclassmustalsoimplementjavax.servlet.FilterChain.

C.Whenyourfilterchainstothenextfilter,itshouldpassthesameargumentsitreceivedinitsdoFiltermethod.

D.Themethodthatyourfilterinvokesontheobjectitreceivedthatimplementsjavax.servlet.FilterChaincaninvokeeitheranotherfilteroraservlet.

E.YourfilterclassmustimplementadoFiltermethodthattakes,amongotherthings,anHTTPServletRequestobjectandanHTTPServletResponseobject.


相似考题
参考答案和解析
参考答案:A, D