Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system. Which pattern can the developer use to solve this problem?()
第1题:
Section B (18 marks)
Directions: For each blank in the following passage there are four words or phrases marked A, B, C and D. Fill in each blank with the word or phrase that best fits the context.
Behind our house is the start of a fascinating trail (小径). This trail is one of the old roads that wind through untold miles of forest. My 36 , Beans, and I walk the trail frequently. Normally, Beans sniffs alongside the trail to follow the smell of a deer track or 37 some cause known only to him.
Beans is a white dog, quite handsome and very 38 . He not only understands what
we tell him, but also often makes sounds as if he were trying to 39 back.
One morning, we took a different route, which led us to an unfamiliar trail. I was sure this trail would eventually lead us to our familiar 40 . But, no. We seemed to be far off course. After two hours, I suddenly realized that Beans probably 41 the way home. So I urged, "Beans, take me home." He ran down a new trail. But it merely led to an intersection (岔道口) of trails.
Soon it became 42 that we were getting nowhere. I began to picture the rest of the day in the 43 , without food or drink. We had walked about ten miles. But Beans seemed totally 44 . The sniffing and exploring was going well for him.
Finally, we 45 a crossroad near a highway. Lady Luck suggested I should turn left. We did and 46 reached a cottage beside a field. I knocked on the door and explained my situation to an old man. He laughed and then drove us home.
Since our adventure, I 47 that Beans probably knew all along how to get home.
He was just having too much fan exploring new trails.
36______
A. deer
B. dog
C. lady
D. man
第2题:
My I have two ______ instead of beans, please?
A、corn's ear
B、corn ears
C、ear of corns
D、ears of corn
第3题:
第4题:
在J2EE中,对于我们自己设计的Bean,应该()。
第5题:
菠菜泥的英文为()
第6题:
在J2EE中,对于我们自己设计的Bean,应该()。
第7题:
Given the JSP code: 10. 11. 12.
第8题:
Java code
Template text
Scripting code
Standard action
Expression language
第9题:
Coffee beans must be roasted longer than coffee berries.
Soaking is the lengthiest step in the preparation process.
Consumer preference regarding the final strength and color of coffee varies.
A consumer’s passion for coffee determines exactly how the beans are processed.
The more exotic and unfamiliar the coffee bean, the longer it takes to prepare.
第10题:
一定要继承java.beans.Beans
一定要实现Runnalbe接口
一定要继承java.lang.Thread类
可以不继承java.beans.Beans
第11题:
不要使用java.beans.Beans.instantiate()方法。
不再使用HttpSession时,应该尽早使用invalidate()方法释放。
任何时候都不能使用Servlet的SingleThreadModel。
不再使用JDBC资源时,应该尽早使用close()方法释放。
第12题:
data-source
data-sources
set-property
form-beans
第13题:
菠菜泥的英文是( )。
A.Mashed Potatoes
B.Boiled Spinach
C.Mashedspinach
D.Boiled beans
第14题:
属于Web客户端脚本语言。
A.JavaScript
B.RSS
C.JSP
D.Java Beans
第15题:
关于servlet,下面那句话是错误的()
第16题:
会话Beans只有无状态一种。
第17题:
jsp:useBean动作的scope属性设置为()将使同一用户在不同页面共享Beans。
第18题:
The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()
第19题:
Java code
Template text
Scripting code
Standard action
Expression language
第20题:
JSP
HTML页面
Servlet
View Beans
第21题:
Transfer Object
Service Locator
Intercepting Filter
Business Delegate
第22题:
Transfer Object
Front Controller
Service Locator
Intercepting Filter
Business Delegate
Model-View-Controller
第23题:
Transfer Object
Service Locator
Intercepting Filter
Business Delegate