Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

objectives!

 
ashok khetan
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
can anybody pl explain what exactly the given objectives(12.6 & 10.2) cover?
12.6 Given a "BODY" or "PAGE" constant, identify a correct description of the constant's use in the following methods:
doStartTag
doAfterBody
doEndTag
10.2 Given JSP page attribute scopes: request, session, application, identify the equivalent servlet code.
ashok.
 
anders eriksson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
12.6: I think they mean "SKIP_BODY" and "SKIP_PAGE" instead of "BODY" and "PAGE". The object is probably that you should understand which method can use which constant. JSP specification sais:
"public static final int SKIP_BODY
Skip body evaluation. Valid return value for doStartTag and doAfterBody.
public static final int SKIP_PAGE
Skip the rest of the page. Valid return value for doEndTag."

10.2: When beans are used in JSP they are set to a certain scope level. The objective is to understand what scope level corresponds to which object in a servlet contex.
For example page 4 of this resource http://java.sun.com/products/jsp/pdf/card12.pdf gives:
request = HttpServletRequest
session = HttpSession
application = ServletContext
/anders
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic