wood burning stoves 2.0
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
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 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é

Joined: Nov 24, 2005
Posts: 14688

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.

I agree. Here's the link: http://aspose.com/file-tools
subject: JSP actions tags - a mock exam question from HFSJ
It's not a secret anymore!