单项选择题
在实体Bean的生命周期中,只有在()方法成功完成后,ejbPostCreat()方法才能调用
A.ejbActivate()
B.ejbPassivate()
C.ejbCreat()
D.ejbRemove()
点击查看答案&解析
相关考题
-
单项选择题
在JAVA中,如果要在字符串类型对象S=”JAVA”,中找出字母“v”出现的位置(即位置2),可使用()
A.mid(2,s)
B.charAt(2)
C.s.indexOf(“v”)
D.indexOf(s,”v”) -
单项选择题
Struts应用程序的默认配置文件为()
A.Struts-config.xml
B.web.xml
C.Ejb-jar.xml
D.Sun-web.xml -
单项选择题
在j2ee中,mywebapp目录是一个web应用程序根目录,当在浏览器中输入http://localhost:8080/mywebapp/时,会自动打开该目录下的start.jsp文家。为了达到这个要求,需要在web.xml中添加如下代码()
A.<welcome-file>start.jsp</welcome.-file>
B.<welcome-file-list> start.jsp </welcome.-file-list>
C.<welcome-file><welcome-file> start.jsp</welcome-file> </welcome.-file>
D.<welcome-file-list><welcome-file> start.jsp </welcome.-file></welcome-file-list>
