Jsp 生命週期
Jsp 生命發生順序
一、JSP Page is Translation
二、JSP Page is Compliation
三、JSP Page implementation class is loaded
四、JSP Page implementation is instantiated
五、jspInit is called
六、_jspService is called
七、jspDestroy is called
PG Levin Li 發表在 痞客邦 留言(0) 人氣(40)
Which implicit object is used in a JSP page to retrieve values associated with
<context-param> entries in the deployment descriptor?
A. config
B. request
C. session
D. application
Answer: D
web.xml裡面可以設定兩種參數:
Context初始參數 -- 使用(context-param)
及
Servlet初始參數 -- 使用(servlet-name)
(1)Context初始參數,是屬於web全堿變數,與JSP的application變數相同,在web.xml中配置如下:
<context-param>
<param-name>test</param-name>
<param-value>33</param-value>
</context-param>
(2)Servlet初始參數,只屬於此servlet可以使用這變數,在web.xml中配置如下:
<servlet>
...
<init-param>
<param-name>paramTest1</param-name>
<param-value>123</param-value>
</init-param>
</servlet>
相關資料:
PG Levin Li 發表在 痞客邦 留言(0) 人氣(37)
You have built a collection of custom tags for your web application.
The TLD file is located in the file: /WEB-INF/myTags.xml.
You refer to these tags in your JSPs using the symbolic name: myTags.
Which deployment descriptor element must you use to make this link between the
symbolic name and the TLD file name?
A. <taglib>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</taglib>
B. <tags>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</tags>
C. <tags>
<tags-uri>myTags</taglib-uri>
<tags-location>/WEB-INF/myTags.xml</tags-location>
</tags>
D. <taglib>
<taglib-uri>myTags</taglib-uri>
<taglib-location>/WEB-INF/myTags.xml</taglib-location>
</taglib>
Answer: D
相關說明:
TLD
http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPTags6.html
http://www.ibm.com/developerworks/cn/java/j-jsp07233/
http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
http://doc.openhome.cc/
PG Levin Li 發表在 痞客邦 留言(0) 人氣(11)
ீJAVA-OCWCDீ[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q1[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q2[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q3[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q4[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q5[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q6[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q7[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q8[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q9[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q10[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q11[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q12[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q13[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q14[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q15[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q16[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q18[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q19[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q20[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q21[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q22[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q23[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q24[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q25[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q26[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q27[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q28待續…相關資訊:
PG Levin Li 發表在 痞客邦 留言(0) 人氣(137)

Exam interpretation- Q2
Given the JSP code:
10. <html>
11. <body>
12. <jsp:useBean id='customer' class='com.example.Customer' />
13. Hello, ${customer.title} ${customer.lastName}, welcome
14. to Squeaky Beans, Inc.
15. </body>
16. </html>
PG Levin Li 發表在 痞客邦 留言(0) 人氣(9)
To take advantage of the capabilities of modern browsers that use web standards,such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Document format. However, one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in several web forms to create screen-specific validation functions and are included in these pages with the following statement:使用程式碼
10. <head>
11. <script src='/scripts/screenFunctions.jsp'
12. language='javascript'
13. type='application/javascript'> </script>
14. </head>
15. <!-- body of the web form -->
PG Levin Li 發表在 痞客邦 留言(0) 人氣(31)
參考網站:
JavaRanch's SCWCD Mock Exam
小英的故事-310-083 SCWCD passed
PG Levin Li 發表在 痞客邦 留言(0) 人氣(1,111)