Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

<jsp:useBean> K&B Standard Action Question on page 358.

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
page 358 of HeadFirst S&J states:

There is a concrete Employee Class {int getEmp(), void setEmp()} that implements an abstract class Person {String getName(), void setName()}



Question?
What happens if the code below forwards the request to the jsp above?



The answer on page 420 states that it will FAIL at request.
If the Bean exists on the request scope with value "Evan" why does it fail?
I am missing something but I don't know where.
Thanks,

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The answer on page 420 states that it will FAIL at request.
If the Bean exists on the request scope with value "Evan" why does it fail?
I am missing something but I don't know where.


I have tried above code but it does not fail. I think you too should try once.
 
Marcelo DeOliveira
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the answer on the HFSJ2.0 wrong on the book. Is there an errata for it that i missed?
 
Marcelo DeOliveira
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,
I found the ERRATA for this question:
http://oreilly.com/catalog/errata.csp?isbn=9780596516680
 
reply
    Bookmark Topic Watch Topic
  • New Topic