| Author |
JSP actions tags - a mock exam question from HFSJ
|
L Yan
Greenhorn
Joined: Apr 25, 2006
Posts: 18
|
|
Hello all, I met this question from HFSJ chapter 11. Given: 10. <%@ page import="java.util.*" %> 11. <jsp:import import="java.util.*" /> 12. <jsp irective.page import="java.util.*" /> 13. <jsp age import="java.util.*" /> Assume the prefix "jsp" has been mapped to the namespace http://java.sun.com/JSP/Page. Which are true? (Choose all that apply.) The answer said that Line 11 and Line 13 are not valid elements in the http://java.sun.com/JSP/Page namespace. I don't understand what the namespace effects the jsp action tags. And line 12 <jsp irective.page> looks strange to me. Thanks a lot.
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
The namespace http://java.sun.com/JSP/Page is used for JSP standard actions. There is no jsp:import, nor jsp:page standard actions. Please refer to the spec., JSP.5. Standard Actions. The jsp:directive.page element is used for JSP documents (xml), and has the same meaning as the page directive <@ page> in jsp pages. Please refer to "JSP.6.3.4 The jsp irective.page Element" for details. For the exam, you have to remember which standard actions there is. Good luck. [ August 21, 2006: Message edited by: Satou kurinosuke ]
|
[My Blog]
All roads lead to JavaRanch
|
 |
cheenu Dev
Ranch Hand
Joined: Nov 13, 2005
Posts: 276
|
|
better verify page no:211 in Hanumant deshmukh book or jsp 10.1 in jsp spec. hope it helps you.
|
cheenujunk@gmail.com
|
 |
 |
|
|
subject: JSP actions tags - a mock exam question from HFSJ
|
|
|