This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
First question is Servlet code: foo.Person p = new foo.employee(); p.setName("evan"); request.setAttribute("person",p);
And the answer says "Fails at request time! The person attribute is stored at request scope, so the <jsp:usebean> tag won't work since it specifies only a type " But, the <jsp:usebean> tag has the scope specified as request. Since the scope specified in the tag and the scope where the attribute is stored is "request" why shouldn't the usebean tag work? Can anybody please help clarify? [ April 05, 2008: Message edited by: R Nellika ]