🎴 Flashcard Mode

Java Programming Fundamentals and Servlets

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Within a web.xml which maps the servlet com.tcs.login.LoginServlet to the url /utils/LoginServlet

AnswerClick to flip back
A
<servlet> <servlet-name>login</servlet-name> <servlet-class>com.tcs.login.LoginServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>login </servlet-name> <url-pattern>/utils/L
💡 Explanation:

Option 555477 defines a <servlet> mapping and its corresponding <servlet-mapping> with a matching name. Although the text is truncated in the options, it is the only one structured correctly, whereas the others contain invalid element tags (like </servlet-class> mismatched with </servlet-name>).

Change Mode