Given: 11. 12.catalog 13./catalogTemplate.jsp 14.10 15. Which two are true?()
A: Line 13 is not valid for a servlet declaration.
B: Line 14 is not valid for a servlet declaration.
C: One instance of the servlet will be loaded at startup.
D: Ten instances of the servlet will be loaded at startup.
E: The servlet will be referenced by the name catalog in mappings.
A: Line 13 is not valid for a servlet declaration.
B: Line 14 is not valid for a servlet declaration.
C: One instance of the servlet will be loaded at startup.
D: Ten instances of the servlet will be loaded at startup.
E: The servlet will be referenced by the name catalog in mappings.
举一反三
- <;servlet>;<;servlet-name>;springmvc<;/servlet-name>;<;servlet-class>;org.springframework.web.servlet.【】<;/servlet-class>;<;init-param>;<;param-name>;contextConfigLocation<;/param-name>;<;param-value>;classpath:springmvc-config.xml<;/param-value>;<;/init-param>;<;load-on-startup>;1<;/load-on-startup>;<;/servlet>;<;servlet-mapping>;<;servlet-name>;【】<;/servlet-name>;<;url-pattern>;/<;/url-pattern>;<;/servlet-mapping>;
- Servlet三大组件是() A: Servlet、JSP、Filter B: Servlet、Filter、Listener C: Servlet、Model、JSP D: JSP、Filter、Listener
- 在浏览器中输入http://localhost:8080/myWebApp/start/,就会调用itcast包中名为Student的Servlet,那么在web.xml中配置正确的是(): <servlet> <servlet-name> itcast.Student </servlet-name> <servlet-value> /start/*</servlet-class> </servlet>|<servlet> <servlet-name>/start/*</servlet-name> <servlet-value>itcast.Student</servlet-class> </servlet>|<servlet> <servlet-name>itcast.Student </servlet-name> <servlet-value>student </servlet-class> </servlet> <servlet-mapping> <servlet-name> itcast.Student </servlet-name> <url-pattern>/start/*</url-pattern> </servlet-mapping>|<servlet> <servlet-name>student</servlet-name> <servlet-class>itcast.Student</servlet-class> </servlet> <servlet-mapping> <servlet-name>student</servlet-name> <url-pattern>/start/*</url-pattern> </servlet-mapping>
- MVC中的MVC分别用()、()、()表示。 A: jsp;servlet;javabean B: HTml;javabean;jsp C: javabean;jsp;servlet D: servlet;html;jsp
- 假设在myServlet应用中有一个MyServlet类,在web.xml文件中对其进行如下配置: <servlet> <servlet-name> mysrvlet </servlet-name> <servlet-class> com.wgh.MyServlet </servlet -class> </servlet> < servlet-mapping> <servlet -name> myservlet </servlet-name> <servlet-pattern> /welcome </url-pattern> </servlet-mapping> 则以下选项可以访问到MyServlet的是( )