wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP actions tags - a mock exam question from HFSJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSP actions tags - a mock exam question from HFSJ" Watch "JSP actions tags - a mock exam question from HFSJ" New topic
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: 14687
    
  16

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
 
Consider Paul's rocket mass heater.
 
subject: JSP actions tags - a mock exam question from HFSJ
 
Similar Threads
Diff between JSP Page & JSP Document
Coffee Cram, Chap 11, Q 7
a question on namespaces in jsp
Which of the following are valid JSP code fragments?
importing a Class I created