Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
Thanks,
I found the ERRATA for this question:
http://oreilly.com/catalog/errata.csp?isbn=9780596516680
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic