在浏览器中输入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>
在浏览器中输入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>
假设在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的是( )
假设在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的是( )
中国大学MOOC: 下面是一个 Servlet 部署文件的片段: <servlet> <servlet-name>Hello</servlet-name> <servlet-class>myservlet.example.FirstServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Hello</servlet-name> <url-pattern>/helpHello</url-pattern> </servlet-mapping> Servlet 的类名是( )
中国大学MOOC: 下面是一个 Servlet 部署文件的片段: <servlet> <servlet-name>Hello</servlet-name> <servlet-class>myservlet.example.FirstServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Hello</servlet-name> <url-pattern>/helpHello</url-pattern> </servlet-mapping> Servlet 的类名是( )
Given: 11.<servlet> 12.<servlet-name>catalog</servlet-name> 13.<jsp-file>/catalogTemplate.jsp</jsp-file> 14.<load-on-startup>10</load-on-startup> 15.</servlet> 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.
Given: 11.<servlet> 12.<servlet-name>catalog</servlet-name> 13.<jsp-file>/catalogTemplate.jsp</jsp-file> 14.<load-on-startup>10</load-on-startup> 15.</servlet> 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.
下列选项中,可以填入横线处的是() (多选) <servlet> <servlet-name>LoginServlet</servlet-name> <servlet-class>com.itcast.youjun.servlet.LoginServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>LoginServlet</servlet-name> <url-pattern>________</url-pattern> </servlet-mapping>
下列选项中,可以填入横线处的是() (多选) <servlet> <servlet-name>LoginServlet</servlet-name> <servlet-class>com.itcast.youjun.servlet.LoginServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>LoginServlet</servlet-name> <url-pattern>________</url-pattern> </servlet-mapping>
<;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>;<;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: <;webapp>;<;/webapp>; B: <;servlet>;<;/servlet>;和<;servlet-mapping>;<;/servlet-mapping>; C: <;servlet-name/>;和<;servlet-class>; D: <;servlet-mapping >;<; servlet-name>;
完整地配置一个Servlet需要的标签是()。 A: <;webapp>;<;/webapp>; B: <;servlet>;<;/servlet>;和<;servlet-mapping>;<;/servlet-mapping>; C: <;servlet-name/>;和<;servlet-class>; D: <;servlet-mapping >;<; servlet-name>;
假设在myServlet应用中有一个MyServlet类,在web.xml文件中对其进行如下配置:<;servlet>;<;servlet-name>; mysrvlet <;/servlet-name>;<;servlet-class>; my.MyServlet <;/servlet -class>;<;/servlet>;<;servlet-mapping>;<;servlet -name>; myservlet <;/servlet-name>;<;servlet-pattern>; /welcome <;/url-pattern>;<;/servlet-mapping>;则以下选项可以访问到MyServlet的是 。 A: http://localhost:8080/myservlet B: http://localhost:8080/welcome C: http://localhost:8080/myServlet/myservlet D: http://localhost:8080/myServlet/welcome
假设在myServlet应用中有一个MyServlet类,在web.xml文件中对其进行如下配置:<;servlet>;<;servlet-name>; mysrvlet <;/servlet-name>;<;servlet-class>; my.MyServlet <;/servlet -class>;<;/servlet>;<;servlet-mapping>;<;servlet -name>; myservlet <;/servlet-name>;<;servlet-pattern>; /welcome <;/url-pattern>;<;/servlet-mapping>;则以下选项可以访问到MyServlet的是 。 A: http://localhost:8080/myservlet B: http://localhost:8080/welcome C: http://localhost:8080/myServlet/myservlet D: http://localhost:8080/myServlet/welcome
{阅读下面的代码: TestServlet01</servlet-name> cn.itcast.chapter04.servlet.TestServlet01</servlet-class> </servlet> TestServlet01</servlet-name> /TestServlet01</url-pattern> </servlet-mapping> TestServlet01</servlet-name> /Test01</url-pattern> </servlet-mapping> 下面选项中,可以访问chapter04应用下该Servlet的是()}
{阅读下面的代码: TestServlet01</servlet-name> cn.itcast.chapter04.servlet.TestServlet01</servlet-class> </servlet> TestServlet01</servlet-name> /TestServlet01</url-pattern> </servlet-mapping> TestServlet01</servlet-name> /Test01</url-pattern> </servlet-mapping> 下面选项中,可以访问chapter04应用下该Servlet的是()}
假设在helloapp应用中有一个HelloServlet类,它在web.xml文件中的配置如下: <servlet> <servlet-name> HelloServlet </servlet-name> <servlet-class>org.javathinker.HelloServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name> HelloServlet </servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> 那么在浏览器端访问HelloServlet的URL是
假设在helloapp应用中有一个HelloServlet类,它在web.xml文件中的配置如下: <servlet> <servlet-name> HelloServlet </servlet-name> <servlet-class>org.javathinker.HelloServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name> HelloServlet </servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> 那么在浏览器端访问HelloServlet的URL是