网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

假设在helloapp应用中有一个Javabean文件HelloServlet,它位于org.javathinker包下,那么这个bean的class文件应该放在什么目录下? ( )

A.helloapp/HelloServlet.class

B.helloapp/WEB-INF/HelloServlet.class

C.helloapp/WEB-INF/classes/HelloServlet.class

D.helloapp/WEB-INF/classes/org/javathinker/HelloServlet.class


参考答案

更多 “ 假设在helloapp应用中有一个Javabean文件HelloServlet,它位于org.javathinker包下,那么这个bean的class文件应该放在什么目录下? ( )A.helloapp/HelloServlet.classB.helloapp/WEB-INF/HelloServlet.classC.helloapp/WEB-INF/classes/HelloServlet.classD.helloapp/WEB-INF/classes/org/javathinker/HelloServlet.class ” 相关考题
考题 假设在helloapp应用中有一个hello.jsp,文件路径为C:/Tomcat/webapps/helloapp/hello/hello.jsp那么在浏览器端访问hello.jsp的URL是()A、http://localhost:8080/hello.jspB、http://localhost:8080/helloapp/hello.jspC、http://localhost:8080/helloapp/hello/hello.jspD、http://localhost:8080/helloapp/hello

考题 假设在helloapp应用中有一个hello.jsp,它的文件路径如下:%JA VA_HOME%/webapps/helloapp/hello/hello.jsp 那么在浏览器端访问hello.jsp的URL是什么? ()A.http://localhost:8080/hello.jspB.http://localhost:8080/helloapp/hello.jspC.http://localhost:8080/helloapp/hello/hello.jspD.http://localhost:8080/webapps/helloapp/hello/dello.jsp

考题 假设在helloapp应用中有一个hello.jsp,它的文件路径如下:%JAVA_HOME%/webapps/helloapp/hello/hello.jsp,那么在浏览器端访问hello.jsp的URL为()。 A、http://localhost:8080/hello.jspB、http://localhost:8080/helloapp/hello.jspC、http://localhost:8080/helloapp/hello/hello.jspD、http://localhost:8080/webapps/helloapp/hello/dello.jsp

考题 假设在Java源程序文件“MyClass.java”中只含有一个类,而且这个类必须能够被位于个庞大的软件系统中的所有Java类访问到,那么下面( )声明有可能是符合要求的类声明。A、privateclassMyClassextendsObjectB、publicclassmyclassextendsObjectC、publicclassMyClassD、classMyClassextendsObject

考题 假设在stu应用中有一个LoginServlet类,它位于cn.dot包中,在Tomcat服务器中这个类的.class文件的存放路径是哪个选项()?A.stu/webapps/LoginServlet.classB.stu/WEB-INF/LoginServlet.classC.stu/WEB-INF/classes/dot/LoginServlet.classD.stu/WEB-INF/classes/cn/dot/LoginServlet.class

考题 假设在helloapp应用中有一个hello.jsp,它的文件路径如下: <CATALINA_HOME>/webapps/helloapp/hello/hello.jsp 在web.xml文件中没有对hello.jsp作任何配置,那么浏览器端访问hello.jsp的URL是什么?A.http://localhost:8080/hello.jspB.http://localhost:8080/helloapp.jspC.http://localhost:8080/helloapp/hello/hello.jspD.http://localhost:8080/hello

考题 JavaBean类中如果有构造方法,那么这个构造方法是无参数的。()

考题 关于javaBean的scope属性,下面说法错误的是?A.jsp页面的某个JavaBean对象的scope属性如果为request,无论如何刷新a.jsp,该对象都会一直存在。B.如果javaBean的scope属性被指定为session,那么它的生命周期和JSP的session对象相同。C.如果javaBean的scope属性被指定为request,那么它的生命周期和JSP的request对象相同。D.a.jsp页面的某个JavaBean对象的scope属性如果为request,那么这个对象在使用include操作包含进的页面里依然是有效的。

考题 假设在helloapp应用中有一个hello.jsp,它的文件路径如下: %CATALINA_HOME%/webapps/helloapp/hello/hello.jsp 那么在浏览器端访问hello.jsp的URL是什么?A.http://localhost:8080/hello.jspB.http://localhost:8080/helloapp/hello.jspC.http://localhost:8080/helloapp/hello/hello.jspD.http://localhost:8080/hello/hello.jsp