chap16solutions

chap16solutions - The web warrior Guide to Web Programming,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Web Programming Chapter 16 Review Questions 1. To access a bean’s property named foo, the getter method name should be: a. getFoo b. getfoo c. foo d. Foo 2. To set a bean’s property named foo, the setter method name should be: a. setFoo b. setfoo c. foo d. Foo 3. Which of the following scriptlets are equivalent to <jsp:getProperty name=“aBean” property=“foo”/> ? a. <%= aBean.getFoo() %> b. <% out.print(aBean.getFoo()); %> c. <%= “foo” %> d. <%= aBean.foo %> 4. Which of the following scriptlets is/are equivalent to <jsp:setProperty name=“aBean” property=“foo”/>? a. <% aBean.setFoo(); %> b. <% aBean.setFoo(“foo”); %> c. <% aBean.setFoo(request.getParameter(“foo”)); %>
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
d. <% aBean.setFoo(request.getParameterValues(“foo”)); %> 5. Which of the following scopes has the shortest lifetime? a. page scope b. request scope c. session scope d. application scope 6. Which of the following statements about the forward action tag is/are correct? a.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/25/2010 for the course CS 220 taught by Professor Christophersung during the Spring '11 term at NYU.

Page1 / 4

chap16solutions - The web warrior Guide to Web Programming,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online