Jump to content

head first jsp and servlets

Sorry.God's Photo
Posted Dec 29 2011 05:36 AM
2117 Views

Respected PROGRAMMERS,


On page 383 of the second print of book, currentTip is request scoped attribute
but on page 384 pageContent.getCurrentTip() method is invoked.
It is the getter method and should access the property.
Is pageContent the attribute and currentTip its property?


Thank You SIR!

Tags:
2 Subscribe


2 Replies

 : Jan 10 2012 08:29 AM
Hi,

I'm sorry for the confusion. I'm forwarding this question to our book technical support group (booktech@oreilly.com) so they can help.

Kind Regards,

Rachel James
O'Reilly Media
0
  ChrisOlson's Photo
Posted Apr 23 2012 10:34 AM

Hi,

I just got a response back from one of the authors on this question:
-----
Sorry for the very long delay... this message got buried in my person email inbox.

The code the reader mentions on pg 384 is invalid. It should read like this:

<%= request.getAttribute("currentTip") %>

-----

I hope that helps,
Chris Olson
O'Reilly Book Support