Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

objectives!

 
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.
 
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
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic