Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning JavaServer Pages
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning JavaServer Pages
This is the forum to discuss the Wrox book Beginning JavaServer Pages by Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell; ISBN: 9780764574856
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaServer Pages section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 24th, 2005, 02:10 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 - 1st exercise

I am very new to JSP. I tried the solution on page 1124 - Exercise 1 and the titles and weather data are not being displayed. Should I do any other change to the java class file? Any help is appreciated. Thanks

Reply With Quote
  #2 (permalink)  
Old November 4th, 2005, 10:37 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This one was confusing for me too. Actually, you'll need to do the changes listed in the answer for Exercise #2 for Exercise #1 to work correctly.

Glen

Reply With Quote
  #3 (permalink)  
Old March 14th, 2006, 05:53 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually that still doesn't do it. You will only see the weather data, if you set the scope of the bean to "page" in the weather.jsp.
Sadly this is wrong in the solution on p.1125 It's also not mentioned in the errata.
Due to a copy&paste error also in the entertain.jsp on p. 1126 the <head> contains the heading for the weather portal.

Man was I lucky to read that grey box on page 57 and try things out. Apparently I have to dig myself through to chapter 9 to learn why I can't reuse a bean on request-scope that way...
Dear authors, please be particularly careful with beginning chapters!!!




Reply With Quote
  #4 (permalink)  
Old March 14th, 2006, 05:53 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually that still doesn't do it. You will only see the weather data, if you set the scope of the bean to "page" in the weather.jsp.
Sadly this is wrong in the solution on p.1125 It's also not mentioned in the errata.
Due to a copy&paste error also in the entertain.jsp on p. 1126 the <head> contains the heading for the weather portal.

Man was I lucky to read that grey box on page 57 and try things out. Apparently I have to dig myself through to chapter 9 to learn why I can't reuse a bean on request-scope that way...
Dear authors, please be particularly careful with beginning chapters!!!

Reply With Quote
  #5 (permalink)  
Old April 6th, 2006, 08:13 PM
Registered User
 
Join Date: Feb 2006
Location: , Ohio, .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chris457,

Well done! Much appreciate the sharing of info. I struggled with this one as well and you've supplied me with the answer. :)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Exercise 2 diango BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 1st, 2011 02:24 PM
Chapter 16: 1st 'Try It Out' Web.config error jee26 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 September 21st, 2008 09:35 AM
Chapter 13, can't do 1st example beg. page 481 mjoh44 JSP Basics 2 August 16th, 2004 09:51 AM



All times are GMT -4. The time now is 11:33 PM.


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