p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning JavaServer Pages (http://p2p.wrox.com/forumdisplay.php?f=162)
-   -   Chapter 2 Last Exercise has some problem (http://p2p.wrox.com/showthread.php?t=28378)

james_027 April 21st, 2005 03:40 AM

Chapter 2 Last Exercise has some problem
what is the difference between

<jsp:useBean id="newsfeed" class="com.wrox.begjsp.ch2.NewsFeed" scope="request/>
<jsp:setPreperty name="newsfeed" property="topic" value="weather"/>


<jsp:useBean id="newsfeed" class="com.wrox.begjsp.ch2.NewsFeed" scope="request>
<jsp:setPreperty name="newsfeed" property="topic" value="weather"/>

because in the last exercise this two scripts/statements have different results.


What good will it be for a man if he gains the whole world, yet forfeits his soul?
Matthew 16:26

SingLi May 25th, 2005 08:19 PM

The difference is explained on Page 244 in Chapter 8.

The code inside the tag body will not be executed if the
JavaBean cannot be located or created.

All times are GMT -4. The time now is 02:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.