YouarecreatingalibraryofcustomtagsthatmimictheHTMLformtags.Whentheusersubmitsaformthatfailsvalidation,theJSPformisforwardedbacktotheuser.The<t:textField>tagmustsupporttheabilitytore-populatetheformfieldwiththerequestparametersfromtheuser’slastrequest.Fore

题目

YouarecreatingalibraryofcustomtagsthatmimictheHTMLformtags.Whentheusersubmitsaformthatfailsvalidation,theJSPformisforwardedbacktotheuser.The<t:textField>tagmustsupporttheabilitytore-populatetheformfieldwiththerequestparametersfromtheuser’slastrequest.Forexample,iftheuserentered"Samantha"inthetextfieldcalledfirstName,thentheformisre-populatedlikethis:<inputtype=’text’name=’firstName’value=’Samantha’/>Whichtaghandlermethodwillaccomplishthisgoal?()

A.

B.

C.

D.


相似考题
参考答案和解析
参考答案:C