Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP actions tags - a mock exam question from HFSJ

 
L Yan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
cheenu Dev
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
better verify page no:211 in Hanumant deshmukh book
or jsp 10.1 in jsp spec.
hope it helps you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic