Answers to Self-Review Exercises

26.1
  1. False. If an application contains multiple JSPs, those JSPs will share the scoped data beans.

  2. False. init is invoked the first time the page is requested, but not on page refreshes.

  3. True.

  4. True.

  5. True.

  6. False. A web component can map to a group of XHTML elements—JSPs can generate complex XHTML markup from simple components.

  7. False. #{ and } delimit JSF Expression Language statements.

  8. False. The scoped data beans may store any type of property.

26.2
  1. bottom (information), middle (business logic), top (client).

  2. Message.

  3. validator.

  4. AbstractPageBean.

  5. init, prerender.

  6. page bean.

  7. regular expression.

  8. Request (HttpServletRequest).

  9. middle.

Get Java™ How to Program, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.