• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ 2nd edition page 383 - div class

 
Oren Ben
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

i put the following code in jsp file :

<html><body>
<div class="tipBox'>
<b>Tip of the Day:</b><br/><br/>
${pageContent.currentTip}
</div>
</body></html>

How do i get to the following example output :

Tip of the Day:
Wash your hair every other day.

thanks
Oren


">
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without the book, it's going to be difficult to help you, unless you give us more information. What is your output ?
 
Oren Ben
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that's my problem
seems like there is missing code

the book gives the following code :


<div class="tipBox'>
<b>Tip of the Day:</b><br/><br/>
${pageContent.currentTip}
</div>


and the output :

Tip of the Day:
Wash your hair every other day.


my question is : how should i get their output?
the ${pageContent.currentTip} should give me the sentence "Wash your hair every other day." but how? what's the code for that?

thanks
Oren
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like there's something about it in the unconfirmed errata :

The problem with page 443 and 444 is that one cannot easily discern the above given the information provided. This conclusion needs to be pieced together from information provided in multiple paragraphs on the above two pages. In fact, beginning with chapter 7 there appears to have been decrease in the effort to make things clear.
As a example, page 384 introduces a "pageContent" variable. This variable is used again on page 442 and 443. However, there is no effort to explain this variable (i.e. '...let this be a map that contains ....').
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic