aspose file tools*
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 Java 8 in Action this week in the Java 8 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

JSP actions tags - a mock exam question from HFSJ

L Yan

Joined: Apr 25, 2006
Posts: 18
Hello all,

I met this question from HFSJ chapter 11.

10. <%@ page import="java.util.*" %>
11. <jsp:import import="java.util.*" />
12. <jsp import="java.util.*" />
13. <jsp age import="java.util.*" />

Assume the prefix "jsp" has been mapped to the namespace
Which are true? (Choose all that apply.)

The answer said that Line 11 and Line 13 are not valid elements in the namespace. I don't understand what the namespace effects the jsp action tags. And line 12 <jsp> looks strange to me.

Thanks a lot.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

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